Equivalent of git checkout -- using SourceTree Edited

Is there an equivalend of `git checkout --` in the SourceTree?

An example scenario is that I have edited an index.php file on the working copy and saved changes but not commited and  I have deleted something and I need to revert back those changes previously (somewhere) commited index.php file.

Using git directly I will do something like

git checkout -- index.php

which will revert my changes to the lates commited idex.php file.

What I'm looking for is the way to do that in the SourceTree not searching through the Log/History section where is the lastes commit for index.php file.


1 answer

1 accepted

I think I have found correct answer here

Suggest an answer

Log in or Join to answer
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 ...

234 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot