【git】修改邮箱和密码

every blog every motto: There’s only one corner of the universe you can be sure of improving, and that’s your own self.
https://blog.csdn.net/weixin_39190382?type=blog

0. 前言

git修改邮箱和密码

1. 正文

修改当前仓库的邮箱密码

git config user.name "example"
git config user.email "[email protected]"

修改全局的邮箱密码

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

修改最近依次提交的用户密码

git commit --amend --author="userName <userEmail>"

猜你喜欢

转载自blog.csdn.net/weixin_39190382/article/details/128777828