Skip to content

Commit 90d98ea

Browse files
committed
--dry-run
1 parent 7e6c5f7 commit 90d98ea

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
* [Make git case sensitive.](https://github.com/git-tips/tips#make-git-case-sensitive)
8181
* [Auto correct typos.](https://github.com/git-tips/tips#auto-correct-typos)
8282
* [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)
83+
* [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)
8384

8485
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
8586
<!-- @doxie.inject end toc -->
@@ -551,5 +552,10 @@ git config --global help.autocorrect 1
551552
git name-rev --name-only <SHA-1>
552553
```
553554

555+
## Dry run. (any command that supports dry-run flag should do.)
556+
```sh
557+
git clean -fd --dry-run
558+
```
559+
554560
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
555561
<!-- @doxie.inject end -->

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,4 +243,7 @@
243243
}, {
244244
"title": "Check if the change was a part of a release.",
245245
"tip": "git name-rev --name-only <SHA-1>"
246+
}, {
247+
"title": "Dry run. (any command that supports dry-run flag should do.)",
248+
"tip": "git clean -fd --dry-run"
246249
}]

0 commit comments

Comments
 (0)