开发者

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

开发者 https://www.devze.com 2022-12-27 12:48 出处:网络
I recently used git-svn to clone an SVN repository, for the purposes of maintaining my own branch of an open-source project.

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

精彩评论

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

关注公众号