当次的提交显示指定提交者信息:git
1 git commit -m "Initial commit" --author="mn <mn@furzoom.com>"
修改已经提交的commit的信息:spa
1 git commit --amend --author="mn <mn@furzoom.com>"
若是是上几回的提交呢?能够利用rebase来实现,如:code
1 git rebase -i orgin/master
在列表中将开头的pick修改成edit,而后重复执行如下命令直到完成:blog
1 git commit --amend --author="mn <mn@furzoom.com>" 2 git rebase --continue
与上面的不一样在于,不能再使用特定的commit id,使用it
1 git rebase -i --root
便可。
ast