mirror of
https://github.com/namibia/tips.git
synced 2025-01-09 08:30:23 +00:00
staged diff
This commit is contained in:
parent
157337d356
commit
168303734b
@ -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)
|
* [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)
|
* [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)
|
* [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)
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end toc -->
|
<!-- @doxie.inject end toc -->
|
||||||
@ -671,5 +672,10 @@ git config --global --unset <entry-name>
|
|||||||
git checkout --orphan <branch_name>
|
git checkout --orphan <branch_name>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## File diff between staging and the last file version.
|
||||||
|
```sh
|
||||||
|
git diff --staged
|
||||||
|
```
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end -->
|
<!-- @doxie.inject end -->
|
||||||
|
@ -299,4 +299,7 @@
|
|||||||
},{
|
},{
|
||||||
"title": "Checkout a new branch without any history",
|
"title": "Checkout a new branch without any history",
|
||||||
"tip": "git checkout --orphan <branch_name>"
|
"tip": "git checkout --orphan <branch_name>"
|
||||||
|
},{
|
||||||
|
"title": "File diff between staging and the last file version.",
|
||||||
|
"tip": "git diff --staged"
|
||||||
}]
|
}]
|
||||||
|
Loading…
Reference in New Issue
Block a user