Git修改提交的用户名和Email(转)

转:http://blog.163.com/seven_7_one/blog/static/162606412201110233150292/

对已经提交的代码进行名称与邮箱的修改。

Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email [email protected]

If the identity used for this commit is wrong, you can fix it with:

    git commit --amend --author='Your Name <[email protected]>'

猜你喜欢

转载自usench.iteye.com/blog/2308244