Git错误non-fast-forward后的冲突解决 github

  1. $ git add balabala
  2. $ git commit -m "balabala"
  3. $ git git remote add origin http://balabala
  4. (if:fatal: remote origin already exists)(如果报错)
  5. $ git remote rm origin
  6. $ git git remote add origin http://balabala

  

执行git push origin master时报错:

    error:failed to push som refs to.......

  1. $ git config branch.master.remote origin  
  2. $ 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 查看本文章

猜你喜欢

转载自turbo12138.iteye.com/blog/2321847