如何使用git-svn保持svn:external最新? [英] How do I keep an svn:external up to date using git-svn?

查看:357
本文介绍了如何使用git-svn保持svn:external最新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


$ b

  svn co http:// myrepo / foo / trunk foo 
...
foo /
bar /
baz / - > http:// myrepo / baz / trunk

将其视为Git仓库, p>

  git svn克隆http:// myrepo / foo --trunk = trunk --branches = branches --tags = tags 
...
foo /
bar /

我可以将baz克隆到我的本地机器在其他地方,并添加一个符号链接,但这只是一个黑客。是否有办法让 git svn rebase 在更新其他内容时自动引入这些更改,就像 svn up 解决方案我最终使用的解决方案只是符号链接到其他 git-svn

code>我的本地盒子上的克隆。这很有效:它允许我提交更改,它允许我对项目A进行局部更改,只是为了让它们进入项目B.


Treating my repository as a SVN repo, I get:

svn co http://myrepo/foo/trunk foo
...
foo/
  bar/
  baz/ -> http://myrepo/baz/trunk

Treating it as a Git repo, I get:

git svn clone http://myrepo/foo --trunk=trunk --branches=branches --tags=tags
...
foo/
  bar/

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?

解决方案

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屋!

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