我用我的舊github帳戶,現在已停用,現在我有一個新的。我希望它與我的新github用戶名進行通信。我已經嘗試過很多互聯網解決方案,並重新安裝git和命令行工具。每當我git remote -v
從終端刪除git(在線解決方案不工作)(Mac OSX)
origin https://github.com/OldUsername/App.git (fetch) origin https://github.com/OldUsername/App.git (push)
此帳戶類型現在失效,所以沒有辦法使用它,我試着做
git config --global user.email "YOUR EMAIL ADDRESS"
git config user.name "Username"
我一直在嘗試了幾個小時,仍然無法弄清楚如何讓我的命令行能夠在我的新用戶名下推送到新項目。
嘗試沒有'--global'。您可能有項目特定的設置。 – meagar 2014-10-11 01:26:46