是否有可能使git svn dcommit导致单个svn提交? [英] Is it possible to make git svn dcommit result in a single svn commit?

查看:89
本文介绍了是否有可能使git svn dcommit导致单个svn提交?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据手册 git dcommit 会在git中为每个提交创建SVN修订版。但是有没有办法避免多个Subversion版本?也就是说,要让git在执行 svn commit ?之前合并所有更改

解决方案

如果你在git的分支上工作,你可以 git -merge --squash ,这是在git中完成的。然后你可以将这个压扁的提交推送到SVN。



当然,很多小提交都很好,所以你为什么要压缩它们? b $ b

According to the manual, git dcommit "will create a revision in SVN for each commit in git." But is there a way to avoid multiple Subversion revisions? That is, to have git merge all changes prior to performing the svn commit?

解决方案

If you work on a branch in git, you can git-merge --squash, which does that within git. You could then push that one squashed commit to SVN.

Of course, lots of small commits are good, so why would you want to squash them?

这篇关于是否有可能使git svn dcommit导致单个svn提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆