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 98
98
* [ View the GPG signatures in the commit log] ( https://github.com/git-tips/tips#view-the-gpg-signatures-in-the-commit-log )
99
99
* [ Remove entry in the global config.] ( https://github.com/git-tips/tips#remove-entry-in-the-global-config )
100
100
* [ Checkout a new branch without any history] ( https://github.com/git-tips/tips#checkout-a-new-branch-without-any-history )
101
+ * [ File diff between staging and the last file version.] ( https://github.com/git-tips/tips#file-diff-between-staging-and-the-last-file-version )
101
102
102
103
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
103
104
<!-- @doxie.inject end toc -->
@@ -671,5 +672,10 @@ git config --global --unset <entry-name>
671
672
git checkout --orphan < branch_name>
672
673
```
673
674
675
+ ## File diff between staging and the last file version.
676
+ ``` sh
677
+ git diff --staged
678
+ ```
679
+
674
680
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
675
681
<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 299
299
},{
300
300
"title" : " Checkout a new branch without any history" ,
301
301
"tip" : " git checkout --orphan <branch_name>"
302
+ },{
303
+ "title" : " File diff between staging and the last file version." ,
304
+ "tip" : " git diff --staged"
302
305
}]
You can’t perform that action at this time.
0 commit comments