Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is git-blame in SourceTree

I'd like to see who contributed which line/change to a file. git-blame does exactly that. So does SourceTree have a git-blame view?

like image 855
wnrph Avatar asked May 14 '12 10:05

wnrph


People also ask

Where is blame in GitHub?

On GitHub.com, navigate to the main page of the repository. Click to open the file whose line history you want to view. In the upper-right corner of the file view, click Blame to open the blame view.

What is git file blame?

The git blame command is used to examine the contents of a file line by line and see when each line was last modified and who the author of the modifications was.

Why is it called git blame?

In case you don't know git-blameIf you want to know who last changed a particular chunk of code, you use Git to run a special command. That command is called blame. In other words, you don't ask who the author is, you ask who's to blame for a particular contribution.


1 Answers

Select a file, whether in the 'working copy' display or in the 'commit' display, and do one of three things:

  1. option-command-B
  2. menu bar :: Actions :: Blame Selected...
  3. contextual menu :: Blame Selected...

If the file you want to blame is not in the modified files list, you need to change the view to File Status View (View --> File Status View), then set the Sub menu to "Show All"

Show All on OSX

like image 170
GoZoner Avatar answered Sep 20 '22 12:09

GoZoner