开发者

Work with Git and SVN at the same time

开发者 https://www.devze.com 2022-12-14 16:09 出处:网络
I am participing in a Free Software Contest, and we have to use a forge开发者_Go百科 that uses GForge, with only support for SVN, but I will like to use Git (using gitorious) for example.

I am participing in a Free Software Contest, and we have to use a forge开发者_Go百科 that uses GForge, with only support for SVN, but I will like to use Git (using gitorious) for example.

There is a simple way to get two repositories (one on SVN and other with Git) updated more or less at the same time?


This would remain a two-step operation, but some script like git2svn can help you update your svn quickly once you have pushed your commit to the gitorious Git repo.


We are doing something on a similar vein, as we wanted to use Gource to show how pretty our source code was.

here is a link to what the gource site suggests

So I setup a scheduled task to perform every 6 hours (you could do yours more often of course) which would use the git svn fetch function to pull the latest revisions from our svn server to our git install.

It may be possible to do it as part of your Constant Build Server functionallity, I think that's the right term? (as your cruise control, teamcity, or other builds you could perform a git conversion).

Cheers

Luke

(P.S: never could get the git svn rebase to work properly, so am constantly performing a fetch)

0

精彩评论

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

关注公众号