git - git svn 与 git 子树兼容吗?

标签 git git-svn git-subtree

现在 git subtree 已经 merge 到核心 git 发行版中(从 1.8.0 开始它也在 Msysgit 上),有人知道 git svn 是否与 git subtree 一起工作吗?

注意:我说的不是子树 merge 策略,而是this .

Git submodules cannot be used directly when you are using git svn .相反,它需要 another level of indirection .另外git子树工作流程是more convenient when you're tracking third party respositories ,这也是您使用 svn 时发生的事情。

我的问题是,当与 git svn 一起使用时,如何确定 git subtree 是否有任何问题?

最佳答案

我目前正在使用它。 我注意到的唯一问题(或副作用)是,如果我将 dcommit 提交到 svn 中,来自子树的 merge 将作为单个提交提交(如 squash);因此您将丢失 svn 存储库中子树提交的历史记录。

关于git - git svn 与 git 子树兼容吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13447705/

相关文章:

git - 为什么即使我在 Ubuntu 12.10 上安装了 git 1.8.3.2, `git subtree` 也不起作用?

windows - Git 检测到实际字节相同的已更改文件

git - 设置 TeamCity 以 pull 多个具有命名位置的 git repos

windows - Git for Windows : Difference between Git\bin\bash. exe 和 Git\usr\bin\bash.exe

git - 将多个 svn diff merge 为一个大文件

git - 如何停止忽略子树子目录中的文件模式?

git - 忽略对文件的后续更改

ios - 由于 Xcode 错误导致的 pod 规范 lint 验证错误

git-svn - 使用命令 "git svn clone -s svn+ssh://repo_url"克隆 repo 失败

Git-Svn:在 dcommit 之后保留提交时间戳