Git View from within Sourcetree

Sometimes I need to see what a particular source file actually looked like x changes ago. Looking at the log doesn't give me the picture I need, I want to actually see the file itself without changing the current file. I can do this with "git show" command from the command line as in git show SHA:Filename, however I'd love to be able to do this within SourceTree. Sourcetree doesn't seem to offer this natively and I can't seem to get custom actions to work with this. Anyone have any suggestions? 

1 answer

0 votes

Like so?

Screen Shot 2017-10-19 at 6.45.12 PM.png

Screen Shot 2017-10-19 at 6.46.15 PM.pngScreen Shot 2017-10-19 at 6.46.38 PM.png


I did that but I don't have anything in my custom actions


BTW based on the syntax need to run those from a command line without having to worry about path variables or what directory you are the parameter should be "-C $REPO show $SHA:$FILE" so this should work

2017-10-19_21-23-14.pngHowever the custom actions menu has no submenu. 

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,237 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