diff --git a/README.md b/README.md index fdf180f..0936ad2 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ * [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) * [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) @@ -551,5 +552,10 @@ git config --global help.autocorrect 1 git name-rev --name-only ``` +## Dry run. (any command that supports dry-run flag should do.) +```sh +git clean -fd --dry-run +``` + diff --git a/tips.json b/tips.json index dadd540..45f147a 100644 --- a/tips.json +++ b/tips.json @@ -243,4 +243,7 @@ }, { "title": "Check if the change was a part of a release.", "tip": "git name-rev --name-only " +}, { + "title": "Dry run. (any command that supports dry-run flag should do.)", + "tip": "git clean -fd --dry-run" }]