Subversion: Can I checkout, modify, and then make it a branch?
branch, svn, svn-checkout
Solution
According to its command line help svn copy can copy from a directory to a repository URL. So you should be able to copy your working copy to the branch, e.g.:
svn copy working_directory url_to_branch
Problem
I did a checkout from my trunk to a local DIR and made lots of local changes there. Now I don't want to commit it back to the trunk, but I'd rather make a branch from this local version. Is that possible? Can I just copy the trunk to a branch, and then `cd DIR` and `svn switch` to the branch? UPDATE: Thanks for the answers, it worked! To summarize the steps: - `cd DIR` - `svn copy . new-branch-URL` - `svn switch new-branch-URL .` (note the dots)