Files
30-seconds-of-code/snippets/discard-untracked.md
2022-03-22 12:02:38 +02:00

397 B

title, tags, expertise, author, firstSeen, lastUpdated
title tags expertise author firstSeen lastUpdated
Discard untracked changes branch intermediate maciv 2021-04-06T11:11:08+03:00 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.
git clean -f -d
git clean -f -d
# Discards all untracked changes