Skip to content

Commit 7a53485

Browse files
committed
Add git blame
1 parent 9abc547 commit 7a53485

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
125125
* [Unstaging Staged file](#unstaging-staged-file)
126126
* [Force push to Remote Repository](#force-push-to-remote-repository)
127127
* [Adding Remote name](#adding-remote-name)
128+
* [Show the author, time and last revision made to each line of a given file](#show-the-author-time-and-last-revision-made-to-each-line-of-a-given-file)
128129

129130
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
130131
<!-- @doxie.inject end toc -->
@@ -880,5 +881,10 @@ git push -f <remote-name> <branch-name>
880881
git remote add <remote-nickname> <remote-url>
881882
```
882883

884+
## Show the author, time and last revision made to each line of a given file
885+
```sh
886+
git blame <file-name>
887+
```
888+
883889
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
884890
<!-- @doxie.inject end -->

tips.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,12 +372,15 @@
372372
"title": "Get first commit in a branch (from master)",
373373
"tip": "git log master..<branch-name> --oneline | tail -1"
374374
}, {
375-
"title":"Unstaging Staged file",
375+
"title": "Unstaging Staged file",
376376
"tip": "git reset HEAD <file-name>"
377377
}, {
378378
"title": "Force push to Remote Repository",
379379
"tip": "git push -f <remote-name> <branch-name>"
380380
}, {
381381
"title": "Adding Remote name",
382382
"tip": "git remote add <remote-nickname> <remote-url>"
383+
}, {
384+
"title": "Show the author, time and last revision made to each line of a given file",
385+
"tip": "git blame <file-name>"
383386
}]

0 commit comments

Comments
 (0)