作者热门文章
- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
我和一个 friend 共用我的电脑。我已经在 Windows 7 上使用 git bash shell 推送到 GitHub。现在我们在那台计算机上的另一个项目中,我需要她推送到她的帐户。但它一直尝试使用我的用户名并说我无权访问她的存储库:
$ 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
最佳答案
这对我有用,它会提示输入用户名和密码
git config --local credential.helper ""
git push origin master
关于git - 如何使用不同的用户名推送到 GitHub?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13103083/
我是一名优秀的程序员,十分优秀!