staged diff

This commit is contained in:
Hemanth.HM 2016-04-18 20:11:57 +05:30
parent 157337d356
commit 168303734b
2 changed files with 9 additions and 0 deletions

View File

@ -98,6 +98,7 @@
* [View the GPG signatures in the commit log](https://github.com/git-tips/tips#view-the-gpg-signatures-in-the-commit-log)
* [Remove entry in the global config.](https://github.com/git-tips/tips#remove-entry-in-the-global-config)
* [Checkout a new branch without any history](https://github.com/git-tips/tips#checkout-a-new-branch-without-any-history)
* [File diff between staging and the last file version.](https://github.com/git-tips/tips#file-diff-between-staging-and-the-last-file-version)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -671,5 +672,10 @@ git config --global --unset <entry-name>
git checkout --orphan <branch_name>
```
## File diff between staging and the last file version.
```sh
git diff --staged
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->

View File

@ -299,4 +299,7 @@
},{
"title": "Checkout a new branch without any history",
"tip": "git checkout --orphan <branch_name>"
},{
"title": "File diff between staging and the last file version.",
"tip": "git diff --staged"
}]