how to revert back?

I double clicked on a commit, the head was reset, but the files are still the same, showing today's date as modified date .. i need to get an old version ... i need to get a version from a year ago .. how do i do this?

2 answers

1 accepted

0 votes
Accepted answer

ok it seems like although the file dates do not go back to the original date (would be nice), double clicking on the commit does revert the files .. very simple .. you gys seriously need some help documentation for sourcetree ... love it though

0 votes
Timothy Chin Community Champion Sep 04, 2013

Don't know if SouceTree can do it. But if you the commit id (git log <filename>), you can always revert to that version.

i suppose if possible via command line, that is ok, what would the command to do this?

actually i do not want to affect the server at all .. for example, we have 100 modifications per day .. one of the them was good .. a tester might want to grab that version they tagged .. HOW TO GET IT??? is there anyone here would knows how this product works? HOW DO I GET AN OLD VERSION OF ALL THE FILES? .. it seems to be a reasonable thing to want to do with a source control system

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...

831 views 3 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