git svn与git subtree兼容吗? [英] Is git svn compatible with git subtree?

查看:129
本文介绍了git svn与git subtree兼容吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在git子树已经被合并到核心git发行版中(它也是在1.8.0版本的Msysgit上),有人知道git svn是否可以用于git子树?



注意:我不是在谈论子树合并策略,而是关于

当你使用git svn时,不能直接使用Git子模块。相反,它需要另一级间接。另外,git子树工作流程在更方便,当你跟踪第三方存储库时,这是一些东西当你使用svn时也会发生这种情况。



我的问题是,如何在git svn中使用git subtree时遇到任何问题?

解决方案

我目前正在使用它。
我注意到的唯一问题(或副作用)是,如果我提交svn,则从子树的合并被提交为一个单独提交(如squash);所以你会放弃svn repo中的子树提交历史。


Now that git subtree has been merged into the core git distribution (its also on Msysgit as of 1.8.0), does anyone know if git svn works with git subtree?

Note: I am not talking about the subtree merge strategy, but about this.

Git submodules cannot be used directly when you are using git svn. Instead, it requires another level of indirection. In addition, the git subtree workflow is more convenient when you're tracking third party respositories, which is something that happens when you use svn too.

My question is, how do I find out if git subtree has any issues when used with git svn?

解决方案

I am currently using it. The only issue (or side effect) I noticed, is that if I dcommit into the svn the merge from the subtree is committed as one single commit (like squash); so you will loose the history of the subtree commits in the svn repo.

这篇关于git svn与git subtree兼容吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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