- $ git add balabla
- $ git commit -m "balabala"
- $ git git remote add origin http://balabala
- (if: fatal: remote origin already exists ) ( if an error is reported )
- $ git remote rm origin
- $ git git remote add origin http://balabala
Error when executing 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
then push
I don't know if you understand
Here is the link to the original author's blog: http://blog.csdn.net/chain2012/article/details/7476493
Other related links: http://blog.jobbole.com/78960/
http://lazynight.me/2898.html