How to get a specific tagged version of code project from Sourcetree without effecting the existing code base

Hello Team,

Our Java project is in sourcetree and we tagged multiple times during the development phase. We are still working on it. Now my question is how can i get the code base based on a specific tagged version without impacting the present codebase.


I want to get the tagged version to some other location.


Could you please assist me by providing the steps to perform.




2 answers

You need to create another clone either by copying the firs clone to a different folder or cloning the repository from the server to a new folder. Afterwards, you can check out the tag the same way you would check out a branch.


I am not getting the solution correctly. Could you please help me by mentioning in steps. I am using Sourcetree.

In SourceTree, click "Clone/New". For the SourcePath, use the same remote as your existing repo, but choose a new local folder. This will give you a second repository on your machine. You can keep the first as the "present codebase", and use the second to check out old tags.

If you want a single use copy of the tagged version of code, rather than a full-featured repository, try the git archive command:

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,110 views 4 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you