开发者

How do I add an SVN remote to a Git repository?

I recently used git-svn to clone an SVN repository, for the purposes of maintaining my own branch of an open-source project.

I'm also working with开发者_运维技巧 others on this branch, so we use a shared Git repository to help with the collaboration.

A colleague wishes to fetch new revisions from the original SVN repository. How might he accomplish this? I can simply run "git svn fetch" on my local machine, but seeing that my colleague has cloned from the shared Git repository, his local branch lacks the necessary SVN metadata for fetching.

Thanks!


Open up the .git/config for the repo on your machine, copy the [svn-remote "name"] block, and have your colleague insert it in his .git/config :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜