问题:
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