Konubinix' opinionated web of thoughts

Git Replace

fleeting

Git - Replace

every time you refer to this object, pretend it’s a different object

https://git-scm.com/book/en/v2/Git-Tools-Replace

for replacing one commit in your history with another one without having to rebuild the entire history

https://git-scm.com/book/en/v2/Git-Tools-Replace

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:

https://git-scm.com/book/en/v2/Git-Tools-Replace

possible to disable use of replacement references for any command using the –no-replace-objects option just after git

https://git-scm.com/docs/git-replace

Notes linking here