Files
30-seconds-of-code/snippets/discard-untracked.md
Isabelle Viktoria Maciohsek c191f90c77 Add discard snippets
2021-04-06 11:11:08 +03:00

18 lines
290 B
Markdown

---
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
```