1
0
mirror of https://github.com/k88hudson/git-flight-rules.git synced 2025-03-10 20:58:39 -03:00

Removing -x on git clean tip to avoid unintentional use (#186)

* Removing -x on git clean to avoid unintentionally use

* Removing ! on git clean tip
This commit is contained in:
Eduardo Matos 2017-12-22 13:43:25 -02:00 committed by Richard Littauer
parent 697dbb404f
commit 7dc4eedb17

View File

@ -362,10 +362,10 @@ $ git reset --hard HEAD
This will remove all local untracked files, so only files tracked by Git remain: This will remove all local untracked files, so only files tracked by Git remain:
```sh ```sh
$ git clean -fdx $ git clean -fd
``` ```
WARNING: -x will also remove all ignored files! `-x` will also remove all ignored files.
<a href="i-want-to-discard-specific-unstaged-changes"></a> <a href="i-want-to-discard-specific-unstaged-changes"></a>
### I want to discard specific unstaged changes ### I want to discard specific unstaged changes