如何使用 git-svn 使 svn:external 保持最新? [英] How do I keep an svn:external up to date using git-svn?
问题描述
将我的存储库视为 SVN 存储库,我得到:
Treating my repository as a SVN repo, I get:
svn co http://myrepo/foo/trunk foo
...
foo/
bar/
baz/ -> http://myrepo/baz/trunk
将其视为 Git 存储库,我得到:
Treating it as a Git repo, I get:
git svn clone http://myrepo/foo --trunk=trunk --branches=branches --tags=tags
...
foo/
bar/
我可以将 baz 克隆到其他地方的本地机器并添加符号链接,但这只是一个技巧.有没有办法让 git svn rebase
在更新其他所有内容时自动引入这些更改,就像 svn up
一样?
I can clone baz to my local machine elsewhere and add a symlink, but that's just a hack. Is there a way to have git svn rebase
automatically pull in those changes when it updates everything else, just like svn up
does?
推荐答案
我最终使用的解决方案只是符号链接到本地机器上的其他 git-svn
克隆.这很有效:它允许我提交更改,并且允许我在项目 A 上进行本地更改,只是为了让它们进入项目 B.
The solution I ended up using was just to symlink to other git-svn
clones on my local box. This worked pretty well: it allows me to commit changes back, and it allows me to make local changes on project A just to get them into project B.
这篇关于如何使用 git-svn 使 svn:external 保持最新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!