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.
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.
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
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