Files
30-seconds-of-code/snippets/discard-untracked.md
2023-04-28 22:15:54 +03:00

361 B

title, type, tags, cover, dateModified
title type tags cover dateModified
Discard untracked changes snippet
branch
cold-mountains 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