Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a branch from a previous svn-revision using SmartGit?

I use SmartGit/HG with an old svn-repository. So it is not a git-repository.

I would like to create a new branch from a former revision in SmartGit. Is this possible?

In the end I would like to have a new folder on my local disk, where I have the full branch-files and in the old existing folder I will have the full trunk-files.

like image 519
rubo77 Avatar asked Nov 30 '25 15:11

rubo77


1 Answers

First, make sure you have cloned the SVN repository with SmartGit/Hg, not with git-svn (usually SmartGit/Hg will warn you about that when opening such a repository). Then:

  • use Branch|Checkout to move to the revision from which you want to fork your branch,
  • use Branch|Add Branch to create your new branch and select to switch to this branch,
  • use Remote|Push. SmartGit/Hg will ask you how to push. Select Push as New here.

Now, your new branch will be present in the SVN repository and should show up in SmartGit/Hg's Log as a remote branch as well.

like image 101
mstrap Avatar answered Dec 02 '25 07:12

mstrap



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!