--- title: Discard untracked changes type: snippet tags: [branch] cover: cold-mountains dateModified: 2021-04-13T21:10:59+03:00 --- Discards all untracked changes to the current branch. - Use `git clean -f -d` to discard all untracked changes to the current branch. ```shell git clean -f -d ``` ```shell git clean -f -d # Discards all untracked changes ```