Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Moving Local Changes Into a Branch

Tags:

branch

svn

I've been working in the trunk today and now I am needing to take some changes I've made out of the trunk and move them into a branch. I haven't committed any of these changes yet. But I need to create a branch then get these files into that branch. I have no idea how to go about this.

like image 483
Gregg Avatar asked Jan 23 '12 19:01

Gregg


People also ask

How do I move to a new branch?

The git branch command can be used to create a new branch. When you want to start a new feature, you create a new branch off main using git branch new_branch . Once created you can then use git checkout new_branch to switch to that branch.


1 Answers

Add a new branch to the repository:

 svn copy $base/trunk $base/branches/my-branch

and then switch your WC to it:

 svn switch $base/branches/my-branch
like image 80
thiton Avatar answered Sep 23 '22 08:09

thiton