【Github】fatal: remote error: You can't push to git 解决办法
2012-12-20 17:00
288 查看
branch正确的情况下,
不知为什么,在push的时候总是出现:
fatal: remote error:
You can't push to git://github.com/user_name/user_repo.git
Use git@github.com:user_name/user_repo.git
的提示,
解决办法:
ok!
经过高人的点播,找到了原因:
如果在git clone的时候用的是git://github.com:xx/xxx.git 的形式, 那么就会出现这个问题,因为这个protocol是不支持push的
用$git clone
git@github.com:lujinjianst/myNCCL.git
就可以用git push了。
不知为什么,在push的时候总是出现:
fatal: remote error:
You can't push to git://github.com/user_name/user_repo.git
Use git@github.com:user_name/user_repo.git
的提示,
解决办法:
$ git remote rm origin $ git remote add origin git@github.com:user_name/user_repo.git $ git push origin
ok!
经过高人的点播,找到了原因:
如果在git clone的时候用的是git://github.com:xx/xxx.git 的形式, 那么就会出现这个问题,因为这个protocol是不支持push的
用$git clone
git@github.com:lujinjianst/myNCCL.git
就可以用git push了。
相关文章推荐
- [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 解决办法
- 解决fatal:remote error:You can't push to git://github.com/username/*.git问题的办法
- 【Github】fatal: remote error: You can't push to git 解决办法
- fatal:remote error:You can't push to git://github.com/username/*.git
- [Git & GitHub] 解决办法:error: failed to push some refs to 'https://github.com/xxxx.git'
- Git – fatal: Unable to create 'XXX/.git/index.lock’: File exists.的解决办法
- Git – fatal: Unable to create 'XXX/.git/index.lock’: File exists.的解决办法
- git 报错 You are not allowed to push code to this project 的解决办法
- [Git & GitHub] 解决办法:Could not read from remote repository.Please make sure you have the...
- Unable to start gdbserver on port '63411' Can't open socket: Permission denied.的解决办法
- git - error: failed to push some refs to 'https://github.com/xuzhezhaozhao/Practice.git' 解决办法
- [git/GitHub] git push 时报错:fatal: remote error: You can't push to git://github.com/user/xxx.git(已解决)
- git push origin master fatal: 'origin' does not appear to be a git repository fatal: Could not read
- failed to push some refs to 'git@github.com:' gitHub push错误的解决办法
- 解决git的这个错误:fatal: Unable to find remote helper for 'https'
- 解决git的这个错误:fatal: Unable to find remote helper for 'https'
- github commit 报错:error: failed to push some refs to 'https:'错误解决方法