Skip to content

Commit 8d53a49

Browse files
authored
Merge pull request #101 from munendrasn/master
Add tip to unstage staged file
2 parents b22f89a + 440a78c commit 8d53a49

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
122122
* [Clone a shallow copy of a repository](#clone-a-shallow-copy-of-a-repository)
123123
* [Search Commit log across all branches for given text](#search-commit-log-across-all-branches-for-given-text)
124124
* [Get first commit in a branch (from master)](#get-first-commit-in-a-branch-from-master)
125+
* [Unstaging Staged file](#unstaging-staged-file)
125126

126127
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
127128
<!-- @doxie.inject end toc -->
@@ -846,5 +847,10 @@ git log --all --grep='<given-text>'
846847
git log master..<branch-name> --oneline | tail -1
847848
```
848849

850+
## Unstaging Staged file
851+
```sh
852+
git reset HEAD <file-name>
853+
```
854+
849855
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
850856
<!-- @doxie.inject end -->

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,4 +370,7 @@
370370
}, {
371371
"title": "Get first commit in a branch (from master)",
372372
"tip": "git log master..<branch-name> --oneline | tail -1"
373+
}, {
374+
"title":"Unstaging Staged file",
375+
"tip": "git reset HEAD <file-name>"
373376
}]

0 commit comments

Comments
 (0)