fatal:remote error:You can't push to git://github.com/username/*.git
2013-04-22 22:20
495 查看
今天git push的时候
fatal:remote error:
You can't push to git://github.com/username/*.git
Use git@github.com:username/*.git
看来我是没有权限push啊。
解决方法:
git remote rm origin
git remote add origin git@github.com:username/resname.git
接下来就可以push了。
这个问题一般是clone的时候选择的协议导致的。如果是用的git://github.com/userna/userrepository.git。只有读的权限,不能写入。导致不能push。
要用ssh协议才能push所以clone用git@github.com:username/userrepository.git
用ssh还必须要创建一个SSH Key。并把公钥填写到用户在GitHub的信息里。具体看GitHub的相应帮助
fatal:remote error:
You can't push to git://github.com/username/*.git
Use git@github.com:username/*.git
看来我是没有权限push啊。
解决方法:
git remote rm origin
git remote add origin git@github.com:username/resname.git
接下来就可以push了。
这个问题一般是clone的时候选择的协议导致的。如果是用的git://github.com/userna/userrepository.git。只有读的权限,不能写入。导致不能push。
要用ssh协议才能push所以clone用git@github.com:username/userrepository.git
用ssh还必须要创建一个SSH Key。并把公钥填写到用户在GitHub的信息里。具体看GitHub的相应帮助
相关文章推荐
- 解决fatal:remote error:You can't push to git://github.com/username/*.git问题的办法
- 【Github】fatal: remote error: You can't push to git 解决办法
- [Github] fatal: remote error: You can't push to git 解决办法
- 【Github】fatal: remote error: You can't push to git 解决办法
- [Github] fatal: remote error: You can't push to git 解决办法
- [Github] fatal: remote error: You can't push to git 解决办法
- 【Github】fatal: remote error: You can't push to git 解决办法
- error: failed to push some refs to 'git@github.com:yourname/repositoryname.git'
- git上传到一半最后报error:failed to push some refs to 'git@github.com:yourname/repositoryname.git'
- git push时出现Username for 'https://github.com': 解决方法
- git push时出现 Username for 'https://github.com':
- git push fatal: unable to connect to github.com问题
- fatal: could not read Username for 'https://github.com': No such file or directory
- 在github上传项目遇到的问题(error: failed to push some refs to 'https://github.com/CrazyDony/text.git')
- git push报错error: failed to push some refs to 'git@github.com:
- Git解决fatal: unable to connect to github.com
- 【git】fatal: unable to access 'https://github.com/top-think/framework.git/'
- Git学习——使用push命令,出现The authenticity of host 'github.com (xx.xx.xx.xx)' can't be established.警告
- error: failed to push some refs to 'git@github.com:GoodMemery/mytest.git'
- git push -u origin master 出现The authenticity of host 'github.com ' can't be established解决方案