- $ 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.csdn.net/chain2012/article/details/7476493
有关的其他链接:http://blog.jobbole.com/78960/
http://lazynight.me/2898.html
扫描二维码关注公众号,回复:
262877 查看本文章