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 vote

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

2017-10-19_21-13-37.png2017-10-19_21-14-42.png

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

545 views 1 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