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?
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.
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.
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.
Select a file, whether in the 'working copy' display or in the 'commit' display, and do one of three things:
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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With