Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a private branch of public SVN repository?

Tags:

svn

I'd like to make a private branch of a public svn repository.

By this, I mean that there's a public, open source (codeplex) repository that I need to make my own, custom changes to. These changes wouldn't be accepted back into the tree. I want to:

  • Check in the changes I make into my own source control, so that they're saved and versioned.
  • Keep some link with the original so that I can easily merge "official" changes.

I understand that git can do this, but I can't figure out how to do it with SVN.

If not possible, how do I do some aspect of the above -- something like taking the code completely over within my repository and keeping a "clean" copy of the official tree where I can easily diff the two trees?

Thanks, James

like image 419
James S Avatar asked Jul 24 '09 19:07

James S


People also ask

Can you have a private branch in a public repo?

You might as well want to merge every new commit on the public branch to your private branch. This situation happens mostly when you are creating a public repository but also want to use it for your private project. Sadly, GitHub did not allow a private branch on a public repository.

How do I create a private branch in svn?

Next use svn switch svn+ssh://host.example.com/repos/project/branches/NAME_OF_BRANCH . (if you want to switch current checkout to new branch) or svn checkout svn+ssh://host.example.com/repos/project/branches/NAME_OF_BRANCH (if you want to have new branch in seperate directory) to start working on newly created branch.


1 Answers

The best solution for this problem is the one described in Version Control with Subversion in the section vendor branches. Use the SVN export command to dump a snapshot of the external SVN hosted project to your local SVN workspace as a vendor drop.

like image 90
Stephen C. Steel Avatar answered Oct 11 '22 21:10

Stephen C. Steel