当Git Bash 使用push的时候出现了以下的这个报错的,可以尝试下使用一下命令
How to solve this problem of "! [rejected] master -> master (fetch first)"
First Do this ...
git fetch origin master
git merge master
Then, do this ...
git fetch origin master:tmp
git rebase tmp
git push origin HEAD:master
git branch -D tmp
Now everything works well.
是在GitHub Gist中有人提出的
Comments: