3

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.

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

3 Comments

thanks, that worked. I also checked "use new branch" so now I am inside the branch in smartgit/hg. and the files locally are all reverted to that branch. How do I switch back to the main trunk in smartgit?
I would like to create a new folder on my local disk, where I have the full branch files and in the old folder I have the full trunk-files
Regarding the first question, use Check Out or Switch (from the Branches view). Regarding the second question, have two different clones of the repository.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.