Files
30-seconds-of-code/snippets/discard-untracked.md
Isabelle Viktoria Maciohsek ed2f41b0d8 Bake dates into snippets
2021-06-13 19:47:48 +03:00

20 lines
372 B
Markdown

---
title: Discard untracked changes
tags: branch,intermediate
firstSeen: 2021-04-06T11:11:08+03:00
lastUpdated: 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
```