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