使用git config --global设置用户名和邮件

如果不去修改用户名和邮件的话。可能会在提交后才发现。想删除又需要花费巨大代价。后悔已经来不及了。

我们可以先:

git config -l

看看自己当前的用户名和邮件地址

。然后我们开始修改吧:

git config --global user.name "bryan sun"

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

改完之后再执行第一步。就可以看见变化了 

参考:

https://blog.csdn.net/sjt19910311/article/details/83685616

猜你喜欢

转载自blog.csdn.net/qq_22182989/article/details/108118688