|
Re: Change a commit message or timestamop [message #1735303 is a reply to message #1735054] |
Fri, 17 June 2016 08:47 |
Christian Halstrick Messages: 274 Registered: July 2009 |
Senior Member |
|
|
You can't modify a commit. You can only create a copy of a commit and choose to use different commit metadata and/or content for the copy. If you only choose to have different commit message, PersonIdent on your copy then the copied commit will have a different commit id. tree hashes will be the same on original and copied commit. If original commit had kids and you want to stay with the original topology then you have to create copies of the child commits also modifying their parentid to point to your new copy. Tools like (git filter-branch or [1] ) help you in this complicated process. Be aware that if you do that to a shared repo then all other developers will have problems merging in their commits which are based on the old commit ids.
[1] https://rtyley.github.io/bfg-repo-cleaner/
Ciao
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.01958 seconds