1. 程式人生 > >Git操作切換本地帳號

Git操作切換本地帳號

lob img -- inf git 賬號 spa post alt

如果本地之前已經保存了一個github賬號, push以後顯示之前的賬號用戶名,所以,需要把本地用戶名給改一下。

解決方式:

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

然後,你可看一下這個文件:

vim ~/.gitconfig

技術分享圖片

完畢

Git操作切換本地帳號