Add git blame

This commit is contained in:
S N Munendra 2016-07-03 19:21:33 +05:30
parent 9abc547f53
commit 7a53485d35
2 changed files with 10 additions and 1 deletions

View File

@ -125,6 +125,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Unstaging Staged file](#unstaging-staged-file)
* [Force push to Remote Repository](#force-push-to-remote-repository)
* [Adding Remote name](#adding-remote-name)
* [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)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -880,5 +881,10 @@ git push -f <remote-name> <branch-name>
git remote add <remote-nickname> <remote-url>
```
## Show the author, time and last revision made to each line of a given file
```sh
git blame <file-name>
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->

View File

@ -372,7 +372,7 @@
"title": "Get first commit in a branch (from master)",
"tip": "git log master..<branch-name> --oneline | tail -1"
}, {
"title":"Unstaging Staged file",
"title": "Unstaging Staged file",
"tip": "git reset HEAD <file-name>"
}, {
"title": "Force push to Remote Repository",
@ -380,4 +380,7 @@
}, {
"title": "Adding Remote name",
"tip": "git remote add <remote-nickname> <remote-url>"
}, {
"title": "Show the author, time and last revision made to each line of a given file",
"tip": "git blame <file-name>"
}]