如何以不同的用户名推送到 GitHub? - How do I push to GitHub under a different username?

问题:

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章