码迷,mamicode.com
首页 > 其他好文 > 详细

[ISSUE]Error: Permission to user/repo denied to other-user

时间:2015-01-25 00:00:31      阅读:433      评论:0      收藏:0      [点我收藏+]

标签:

机器甲上曾经使用过一个私人github账号A,并且添加了ssh验证

后来为了公共开发,又创建了一个github账号B,提交的时候发现出现错误: remote: Permission to user_B/xxx.git denied to user_A

使用git config, git log 查看用户名都是账号B

github上的解决方法(https://help.github.com/articles/error-permission-to-user-repo-denied-to-other-user/)不适合,因为该项目是B创建的,并不属于A 

按照https://help.github.com/articles/generating-ssh-keys/ 方法重新创建,还是一样的错误

最后尝试将https 换成 git (https://help.github.com/articles/changing-a-remote-s-url/)

git remote set-url origin git@github/...

正确提交

 

原因不明。。。

 

[ISSUE]Error: Permission to user/repo denied to other-user

标签:

原文地址:http://www.cnblogs.com/shadow21/p/4246863.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!