File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
122
122
* [ Clone a shallow copy of a repository] ( #clone-a-shallow-copy-of-a-repository )
123
123
* [ Search Commit log across all branches for given text] ( #search-commit-log-across-all-branches-for-given-text )
124
124
* [ Get first commit in a branch (from master)] ( #get-first-commit-in-a-branch-from-master )
125
+ * [ Unstaging Staged file] ( #unstaging-staged-file )
125
126
126
127
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
127
128
<!-- @doxie.inject end toc -->
@@ -846,5 +847,10 @@ git log --all --grep='<given-text>'
846
847
git log master..< branch-name> --oneline | tail -1
847
848
```
848
849
850
+ ## Unstaging Staged file
851
+ ``` sh
852
+ git reset HEAD < file-name>
853
+ ```
854
+
849
855
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
850
856
<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 370
370
}, {
371
371
"title" : " Get first commit in a branch (from master)" ,
372
372
"tip" : " git log master..<branch-name> --oneline | tail -1"
373
+ }, {
374
+ "title" :" Unstaging Staged file" ,
375
+ "tip" : " git reset HEAD <file-name>"
373
376
}]
You can’t perform that action at this time.
0 commit comments