--dry-run

This commit is contained in:
Hemanth.HM 2016-02-10 17:26:02 +05:30
parent 7e6c5f71b2
commit 90d98ea980
2 changed files with 9 additions and 0 deletions

View File

@ -80,6 +80,7 @@
* [Make git case sensitive.](https://github.com/git-tips/tips#make-git-case-sensitive) * [Make git case sensitive.](https://github.com/git-tips/tips#make-git-case-sensitive)
* [Auto correct typos.](https://github.com/git-tips/tips#auto-correct-typos) * [Auto correct typos.](https://github.com/git-tips/tips#auto-correct-typos)
* [Check if the change was a part of a release.](https://github.com/git-tips/tips#check-if-the-change-was-a-part-of-a-release) * [Check if the change was a part of a release.](https://github.com/git-tips/tips#check-if-the-change-was-a-part-of-a-release)
* [Dry run. (any command that supports dry-run flag should do.)](https://github.com/git-tips/tips#dry-run-any-command-that-supports-dry-run-flag-should-do)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. --> <!-- Dont 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 -->
@ -551,5 +552,10 @@ git config --global help.autocorrect 1
git name-rev --name-only <SHA-1> git name-rev --name-only <SHA-1>
``` ```
## Dry run. (any command that supports dry-run flag should do.)
```sh
git clean -fd --dry-run
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. --> <!-- Dont 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 -->

View File

@ -243,4 +243,7 @@
}, { }, {
"title": "Check if the change was a part of a release.", "title": "Check if the change was a part of a release.",
"tip": "git name-rev --name-only <SHA-1>" "tip": "git name-rev --name-only <SHA-1>"
}, {
"title": "Dry run. (any command that supports dry-run flag should do.)",
"tip": "git clean -fd --dry-run"
}] }]