![](/img/trans.png)
[英]Any way to default git svn dcommit to fail if code is out of date?
[英]git svn dcommit fail
当我执行git svn dcommit时,它报告如下错误:
git svn dcommit
Committing to http://192.168.33.203/svn/repos/mt6577/platform/branches/vendor-ALPS.ICS2.6577.SP.V1_HUAQIN77_CU_ICS ...
summit merge conflict: file or directory “mediatek/platform/mt6577/external/meta/sgx” is out of date;please update: resource out of date; try updating at /usr/local/libexec/git-core/git-svn line 579
我的操作:
在本地执行三个commit(commit34,commit35,commit36)
git svn将这三个提交提交给svn
通过rebase命令修改commit34,commit35
git svn dcommit,然后报告以上错误。
如何处理错误,非常感谢。
首先, 永远不要对使用git时已推送回存储库的提交进行重新基准化。 虽然你与混帐svn的工作, rebase
这些提交不是一个好主意。 为什么? 由于rebase
改变提交历史,这是确定的,当你只是在本地工作。
就您而言,您可以运行git svn fetch/rebase
并解决任何冲突,然后dcommit
其重新dcommit
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.