我有一个包含两个主要分支master和develop的存储库。并且有两个程序员 A 和 B 提交到其中。基本上,他们提交到“开发”中,并且使用稳定的版本,提交将被合并到master并推送到远程。
当我完成从develop(local)到master(local)的本地合并后,将本地master推送到远程master时出现了问题:
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags %remotename% master:master
Pushing to %remote-addr%
POST git-receive-pack (782 bytes)
To %remote-addr%
! [remote rejected] master -> master (%commit-sha% by %programmer-B% <...> was not committed by %programmer-A% (...))
error: failed to push some refs to '%remote-addr%'
Completed with errors, see above
任何帮助都会被应用。非常感谢。