Git Replace
Fleeting- External reference: https://git-scm.com/docs/git-replace
- External reference: https://git-scm.com/book/en/v2/Git-Tools-Replace
Git - Replace
every time you refer to this object, pretend it’s a different object
for replacing one commit in your history with another one without having to rebuild the entire history
Interestingly, it still shows 81a708d as the SHA-1, even though it’s actually using the c6e1e95 commit data that we replaced it with. Even if you run a command like cat-file, it will show you the replaced data:
possible to disable use of replacement references for any command using the –no-replace-objects option just after git