Skip to content

Does parent rewriting apply changes to branches and tags? #287

Closed Answered by newren
GCheung55 asked this question in Q&A
Discussion options

You must be logged in to vote

I believe

  git replace $commit_A $commit_B

is an error by default, because git-replace says "Unless -f is given, the replace reference must not yet exist.". So that line is doing nothing.

Did you check that running

   git replace -l --format=medium

before running the filter-repo command shows the actual replacement setup? Also, does

   git log $commit_A

actually give you the log message for commit_B?

If those are as expected, could you specify in more detail what you mean by "see[ing] commit_A in other branches"? In particular, what are the git commands you are running that shows commit_A? Was this after doing additional pushing/fetching, or seen in the repo where you ran the filterin…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by newren
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants