guide of changing git commit author's information
1. find the previous commit id of the needing amend commit,look as below
872945f is committed by me and need to change the author email id
6713ffa is the previous commit id
[img]
[/img]
2. run the below commit
git rebase -i -p 6713ffa
[size=11px;] [/size]
[size=11px;]change the pick to edit before [/size]872945f and type “wq” to exit
3. run the below command to amend author information
git commit --amend --author="mayun " --no-edit
git rebase -continue
4. run the below command to raise change to remote
git push --force --tags origin 'refs/heads/*' -u
refer to below
http://www.jianshu.com/p/b6add8187c06
https://www.git-tower.com/learn/git/faq/change-author-name-email
猜你喜欢
转载自simafengyun.iteye.com/blog/2361582
今日推荐
周排行