mirror of
https://github.com/namibia/tips.git
synced 2025-01-09 08:30:23 +00:00
commit
596941ca4d
@ -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)
|
||||
|
||||
<!-- Don’t 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>
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
@ -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>"
|
||||
}]
|
||||
|
Loading…
Reference in New Issue
Block a user