--- title: Discard untracked changes tags: branch,intermediate --- Discards all untracked changes to the current branch. - Use `git clean -f -d` to discard all untracked changes to the current branch. ```sh git clean -f -d ``` ```sh git clean -f -d # Discards all untracked changes ```