I'm modifying an open-source project that's stored in an SVN repo. Since my changes will likely take a while to complete, I've checked the project out as a Git repo using the git-svn bridge. I don't have access to the project's Subversion repo so I can't push changes back to it, but I'd like to publish my Git repo (on GitHub) so others can track development of my modifications.
To update a "git svn" repo, you use git svn rebase
, which, as the name suggests, rebases any changes on top of the new changes from the Subversion repo. Of course, it's not a good idea to push any branches you've rebased into a public Git repo, so in regards to a repo cloned from an SVN repository, I have a couple of related questions:
- Is it safe to publish a rebased branch (using
git-svn rebase
) to a public repo? - I'm of the understanding that, assuming your master branch in Git is the one onto which you are rebasing changes from the SVN repo, you shouldn't do any real development in that repo; i.e., if you merge changes into master, you should push them into the SVN repo (using
git svn dcommit
). If you adhere to this policy, is it okay to publish the rebased master branch to a public repo?