3 ms·
1 is true. When git is “rewriting” history it’s actually creating a new commits and moving the branch pointer over. Until the gc reaps them, you can absolutely
by stu2b50 4y ago
1 is true. When git is “rewriting” history it’s actually creating a new commits and moving the branch pointer over.
Until the gc reaps them, you can absolutely git checkout the hash of any of the rewritten history and it’s still there, same as you left it. You can even move the branch pointer back, undoing the history rewrite.
- stonemetal12 4y agoSo when I do a pull I get their un-rewritten history? Just because they have a short undo buffer doesn't make modifiable history immutable.