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 9898* [ View the GPG signatures in the commit log] ( https://github.com/git-tips/tips#view-the-gpg-signatures-in-the-commit-log )
9999* [ Remove entry in the global config.] ( https://github.com/git-tips/tips#remove-entry-in-the-global-config )
100100* [ 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 )
101102
102103<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
103104<!-- @doxie.inject end toc -->
@@ -671,5 +672,10 @@ git config --global --unset <entry-name>
671672git checkout --orphan < branch_name>
672673```
673674
675+ ## File diff between staging and the last file version.
676+ ``` sh
677+ git diff --staged
678+ ```
679+
674680<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
675681<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 299299},{
300300 "title" : " Checkout a new branch without any history" ,
301301 "tip" : " git checkout --orphan <branch_name>"
302+ },{
303+ "title" : " File diff between staging and the last file version." ,
304+ "tip" : " git diff --staged"
302305}]
You can’t perform that action at this time.
0 commit comments