Skip to content

Instantly share code, notes, and snippets.

@swifterfit
Created March 4, 2018 02:24
Show Gist options
  • Save swifterfit/8314857f878267ca2263e9eab981637d to your computer and use it in GitHub Desktop.
Save swifterfit/8314857f878267ca2263e9eab981637d to your computer and use it in GitHub Desktop.
git local/global name and email
git config --global user.name "Your Name"
git config --global user.email [email protected]
全局的通过vim ~/.gitconfig来查看
git config user.name "Your Name"
git config user.email [email protected]
局部的通过当前路径下的 .git/config文件来查看
也可以修改提交的用户名和Email:
git commit --amend --author='Your Name <[email protected]>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment