git|SourceTree强制提交Push

$ git push origin master:master

To https://xxxxxx
! [rejected]   master -> master (non-fast-forward)
error: failed to push some refs to 'https://xxxxx'

hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.


强制提交报错,使用一下命令即可

 git push -f origin master:master

git|SourceTree强制提交Push_第1张图片

你可能感兴趣的:(Git)