git config --list獲取所有信息
git 修改當前的project的用戶名的命令爲:git config user.name 你的目標用戶名;
git 修改當前的project提交郵箱的命令爲:git config user.email 你的目標郵箱名;
quanju
git config --global user.name 你的目標用戶名;
git config --global user.email 你的目標郵箱名;
添加新的url
1.修改命令
git remote set-url origin [url]
例如:Git remote set-url origin [email protected]:PHP/hasoffer.git
2.先刪後加
git remote rm origin
git remote add origin [url]
如果push遇到在輸入密碼是熟錯後,就會報這個錯誤fatal: Authentication failed for
解決辦法:
git config --system --unset credential.helper
之後你在push就會提示輸入名稱和密碼