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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

649 views 0 4
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