A git power feature that may help you
I was setting up a new git repository and I was using a wrong author, so the name was wrong on all the commits. I googled around and found this command which allow you to basically rename all the authors:It’s deep in dirty-commit-territory, so if there are more people who have pulled from you repo, you’ll have all kinds of nasty issues, but if it’s a new repo which hasn’t been pulled/forked by anybody, you shouldn’t have problems with pushing with “git push -f origin branchname”
There’s also some helpful discussions on Stack Overflow: http://stackoverflow.com/questions/750172/how-do-i-change-the-author-of-a-commit-in-git
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.