git -c credential.helper= -c core.quotepath=false -c log.showSignature=false push --progress --porcelain gitlab refs/heads/master:master
error: failed to push some refs to ‘172.17.25.128:root/lims.git’
To 172.17.25.128:root/lims.git
hint: Updates were rejected because the remote contains work that you do
! refs/heads/master:refs/heads/master [rejected] (fetch first)
hint: not have locally. This is usually caused by another repository pushing
Done
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., ‘git pull …’) before pushing again.
hint: See the ‘Note about fast-forwards’ in ‘git push --help’ for details.
你根据报错提示先 git pull 一下看看呢,感觉是 remote 存在本地没有的提交,可以对比一下 remote 和本地的提交历史
1 个赞