Bug问题:
Gitlab提交branch遇到:
1.git add .
2.git commit -m "commit"
显示无误:
On branch rem_useless_requirenothing to commit, working tree clean
3.git push origin rem_useless_require
却显示:
To gitlab.**** ! [rejected] rem_useless_require -> rem_useless_require (non-fast-forward)error: failed to push some refs to '****'hint: Updates were rejected because the tip of your current branch is behindhint: its remote counterpart. Integrate the remote changes (e.g.hint: 'git pull ...') before pushing again.hint: See the 'Note about fast-forwards' in 'git push --help' for details.
解决办法:
第三步执行git push -u origin rem_useless_require -f
用来强制笼罩已有的分支。胜利解决