|
|
|
|
|
by olddustytrail
1313 days ago
|
|
Probably just making them aware of it. But I can give a slightly longer spiel: Commits in git are immutable. They're identified by their hash, so they have to be. What's more they have the hash of the previous commits so the whole chain back to the first commit can't be changed. You can only add new chains. As a consequence, if your main branch points to commit abc123 and your feature branch points to commit def456 then it doesn't matter if you merge, cherry pick, rebase or dance the fandango, if you point those branches back to those commits, the branches must by necessity look identical to the way they looked before you did anything. And you can find out where they used to point in the reflog. |
|
To my original comment - having to force-push in order to resolve heads - is there a "correct" way to do this that doesn't feel gross?