Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I get local files to reflect a specific commit point?

Edited

I just set up a repo to use with Unity, Sourcetree as the git client. Something I'm not clear on is testing Unity at different commit points. So for example, a separate branch is created for a sprint, someone else makes changes, does a commit, and it needs to be tested on my end. I'm expecting in Sourcetree that I can select that point, perhaps in history, and then the files locally will change to reflect that snapshot. So then I could just launch Unity for that project and it can only access the files that were available at that particular commit. Am I understanding the concept correctly? And how do I do that?

The concept is using only one installation of Unity, one repo, but able to test at any point, in any branch, along the development process. Thanks.

1 answer

1 accepted

0 votes
Answer accepted
Mikael Sandberg Community Leader Sep 22, 2020

Hi @bledigstudios,

Welcome to Atlassian Community!

To checkout a specific commit, locate it in the History view, right-click and either create a branch or checkout the commit. If you need to come back to the commit multiple times I would recommend that you create a branch. 

I like it! It works well, thank you.  :)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published 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...

5,718 views 4 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you