Search code examples
gitsvngit-svngoogle-code

How to partially export a git repository?


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?

Solution

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