How can I get rid of just the untracked files in git?
Posted
by
dukeofgaming
on Programmers
See other posts from Programmers
or by dukeofgaming
Published on 2012-10-18T05:39:37Z
Indexed on
2012/10/18
11:14 UTC
Read the original article
Hit count: 177
In Mercurial I can do this with the bundled Purge Extension and executing the following command:
hg purge
Also good to get rid of ignored files:
hg purge --all
I'm curious about the most practical/used equivalent solution in git.
Edit: I want to just get rid of the untracked files, not reset everything (e.g. suppose I have a program generating cache files or generated code and I want to delete them with git's help)
© Programmers or respective owner