- $ git add balabala
- $ git commit -m "balabala"
- $ git git remote add origin http://balabala
- (if:fatal: remote origin already exists)(如果报错)
- $ git remote rm origin
- $ git git remote add origin http://balabala
执行git push origin master时报错:
error:failed to push som refs to.......
- $ git config branch.master.remote origin
- $ git config branch.master.merge refs/heads/master
$ git pull
然后在push
也不知道大家明白了没有
这里有原作者博客链接:http://blog.youkuaiyun.com/chain2012/article/details/7476493
有关的其他链接:http://blog.jobbole.com/78960/
http://lazynight.me/2898.html
本文介绍了解决在使用Git过程中遇到的常见问题,如添加文件、提交更改、设置远程仓库及解决推送错误的方法。
10万+

被折叠的 条评论
为什么被折叠?



