Subversion 1.6 Ubuntu 10.4
I have a project with the following repository layout.
proj/trunk
proj/branches/new_feature1/
proj/branches/new_feature2/
proj/tags
However, I would like to create a small test app, that isn't a new feature. Just just testing a small aspect of the project. I would like to create this test_app on a new branch. However, I don't want to have to copy from trunk to branch. I just want to create a new empty branch so that I can develop this test_app.
Is there any way to do this?
Many thanks for any suggestions,
To create empty branch, you have to go to terminal and execute: git checkout --orphan branchname git rm -rf . Only after that you may see the new branch on GUI.
Git Create Empty Branch We can use --orphan command line option to create a new branch with no parents. The above command will create a new branch with no parents. Now, you can delete files from the working directory, so they don't commit to a new branch.
You can use svn mkdir
to create the directory, and then use svn co
to check it out:
svn mkdir http://path/to/svn/repository/branches/experimental_project
svn co http://path/to/svn/repository/branches/experimental_project project
One way would be to check out your branches, add a new empty branch, svn add
the new branch then commit. You could probably do the same from the command line directly into the repo.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With