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?
Where is git-blame in SourceTree
These answers are just as I suspected - if you're trying to do a "blame" for an arbitrary file, it can be hard to find the file in the interface. One (far from perfect) shortcut I use is to just temporarily modify the file to cause it to appear as an "Unstaged file", at which point I can right-click it to access the blame. –
Entrench
See Ted's answer (4th one). Sourcetree has cleaned up the language in version 3. We're not out to blame anyone, are we? We're just on a quest to understand. Not that we're getting much help. The windows that pops up with the result is not even searchable. –
Ludwigg
Someone indeed opened an issue for that. –
Stinkweed
Also pointed out by an Atlassian employee community.atlassian.com/t5/Sourcetree-questions/… –
Impress
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"
Not 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. –
Sophisticate
Note that for some inexplicable reason, this has changed from "Blame Selected" to "Annotate Selected" –
Entrench
It 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. –
Piperonal
Someone indeed opened an issue for that. –
Stinkweed
Also pointed out by an Atlassian employee community.atlassian.com/t5/Sourcetree-questions/… –
Impress
- 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.
It's been renamed to "Annotate" in newer versions... –
Impress
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.
In german version:
- Modify the file so that it appears in the staging area.
- Right click
- Click on "Log für Auswahl..." (Log for selection...)
"Log Selected..." and "Blame" are different things –
Impress
© 2022 - 2024 — McMap. All rights reserved.