Reputation: 36433
I'm cleaning up a middle sized repository for a public release.
One of the issues is that although all commits are from me, the author and committer differs a lot (I had inconsistent configuration across machines).
Is there an easy way to rewrite this information in the commits?
Upvotes: 0
Views: 100
Reputation: 4506
It's possible (although very dangerous), with the filter-branch
command.
An example is described in the Pro Git book: http://progit.org/book/ch6-4.html (see the last paragraph at the bottom of the page).
But again: we very cautious, because you're rewriting history and commits (and thus sha1 hashes)....
Upvotes: 4
Reputation: 943
I couldn't find any easy way to do so, but I would also be surprised if it would be possible: this kind of information (author, message, notes), in fact, is part of the bunch of bytes used to calculate the SHA-1 signature of each commit. This means that, changing these info on any but the least commit, will move you on a new branch, and this is not what you want, I suppose.
Upvotes: -1