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

Git View from within Sourcetree

siggib007 October 12, 2017

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
bgannin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 19, 2017

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

siggib007 October 19, 2017

 

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

siggib007 October 19, 2017

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
TAGS
AUG Leaders

Atlassian Community Events