[ISSUE]Error: Permission to user/repo denied to other-user
2015-01-24 23:38
435 查看
机器甲上曾经使用过一个私人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/...
正确提交
17:09 2015/3/29
问题是多个github账户的冲突, 清除所有github账户上的 ssh key,按照如下教程重新建立 ssh-key
http://code.tutsplus.com/tutorials/quick-tip-how-to-work-with-github-and-multiple-accounts--net-22574 http://superuser.com/questions/272465/using-multiple-ssh-public-keys
后来为了公共开发,又创建了一个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/...
正确提交
17:09 2015/3/29
问题是多个github账户的冲突, 清除所有github账户上的 ssh key,按照如下教程重新建立 ssh-key
http://code.tutsplus.com/tutorials/quick-tip-how-to-work-with-github-and-multiple-accounts--net-22574 http://superuser.com/questions/272465/using-multiple-ssh-public-keys
相关文章推荐
- [Git]Error: Permission to user/repo denied to other-user
- 异常:“ERROR: Permission to XXX.git denied to user”终极解决方案
- Git 最著名报错 “ERROR: Permission to XXX.git denied to user”终极解决方案
- github 有名的问题【ERROR: Permission to .git denied to user】
- Git 最著名报错 “ERROR: Permission to XXX.git denied to user”终极解决方案
- 解决ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
- ERROR 1044 (42000)Access denied for user @localhost to database
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
- Xampp下MariaDB的登陆(ERROR 1044 (42000):Access denied for user ''@'localhost' to database)
- Git--Git提交时报错:Permission to XXX.git denied to user
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
- ERROR 1044 (42000): Access denied for user ”@’localhost’ to database ‘mysql’
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
- mysqldump执行时Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
- mysql root 进入出现ERROR 1044(42000):Access denied for user ''@'localhost' to database 'mysql'
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'