git、github切换账号

git、github切换账号

终端下输入下面的命令:

git config user.name      //查看用户名

git config user.email      //查看用户邮箱

//修改用户名和邮箱的命令
git config --global user.name "Your_username"
git config --global user.email "Your_email"
#示例
#git config --global user.name 123
#git config --global user.email 123@gmail.com

参考:https://www.jianshu.com/p/ddcee5ddc8a3

这篇文章有用吗?

点击星号为它评分!

平均评分 0 / 5. 投票数: 0

到目前为止还没有投票!成为第一位评论此文章。

发表评论