Where is git-blame in SourceTree
Solution 1
Starting sourcetree 3.0
Right click file > Annotate Selected
Solution 2
Select a file, whether in the 'working copy' display or in the 'commit' display, and do one of three things:
- option-command-B
- menu bar :: Actions :: Blame Selected...
- 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"
Solution 3
- Switch to the history view and select a commit that has the file you would like to blame.
- Right-click the file name and select Blame Selected.
Alternatively, you can right-click a file in the working tree or that has been staged and do the same thing.
Solution 4
Right click the file-> Blame selected. You can find writer of Each line . Trick: Make a minor change like adding a space in the file you want to find the file easily(File Status) in Source tree.
wnrph
Interested in natural siences, networking, linux, computer engineering, c++ and the web
Updated on July 05, 2022Comments
-
wnrph almost 2 years
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?
-
GoZoner almost 12 yearsNot sure what you are asking. A file changing since the last commit doesn't impact the blame (as the blame is based on the past commits). If the file hasn't change then in Source-Tree you'll find it by selecting 'Working Copy' and then 'Show All' (not 'Show Pending'). From there you can see all the files and select the one you want the blame for.
-
TommyAutoMagically about 6 yearsNote that for some inexplicable reason, this has changed from "Blame Selected" to "Annotate Selected"
-
Erwin Wessels almost 6 yearsIt seems like "Blame" and "Annotate" are near synonyms (for some spelunking on that, see this post on the git mailing list). I'm also suspecting some political correctness being injected.
-
shadowsheep over 5 yearsSomeone indeed opened an issue for that.
-
Sergey over 2 years"Log Selected..." and "Blame" are different things
-
Sergey over 2 yearsAlso pointed out by an Atlassian employee community.atlassian.com/t5/Sourcetree-questions/…
-
Sergey over 2 yearsIt's been renamed to "Annotate" in newer versions...