問題:
A friend and myself are sharing my computer.一個朋友和我正在共用我的電腦。 I've made pushes to GitHub using the git bash shell on Windows 7. Now we're in a different project on that computer and I need her to push to her account.我已經在 Windows 7 上使用 git bash shell 推送到 GitHub。現在我們在該計算機上的另一個項目中,我需要她推送到她的帳戶。 But it keeps trying to use my username and saying I don't have access to her repository:但它一直試圖使用我的用戶名並說我無權訪問她的存儲庫:
$ git push her_github_repository our_branch
ERROR: Permission to her_username/repository.git denied to my_username.
fatal: The remote end hung up unexpectedly
解決方案:
參考一: https://en.stackoom.com/question/syi3參考二: https://stackoom.com/question/syi3