views:

172

answers:

2

Hi!

My company uses git internally and we publish some of our work as an open source on Google Code which uses svn. (Should it support git, the problem would be probably the same.)

The problem is that we publish only part of our repository, so using git-svn as described on http://code.google.com/p/support/wiki/ImportingFromGit will not work.

  • How to publish part of the repository? (For the first time I just copied files we want to publish.)
  • How to synchronize the changes between published files and Code's repository?

thanks, Piotr

+1  A: 

One approach might be to create a separate Git repository for the public stuff, and include that as a submodule in the internal repository. Then it will be a lot easier to synchronise the public Git repository with the Google Code SVN repository.

Greg Hewgill
+2  A: 

You could use git-filter-branch to extract the parts you want to import to Google Code.

Bombe
thanks, that rocks!
Piotr Findeisen