Wednesday, March 31, 2010

git clean

With git, you can reset your working directory to a pristine checkout

$ git clean -xdn

to see what's going to be done, followed by

$ git clean -xdf


-x means even kill ignored files
-d means remove untracked directories as well as files
-n means dry run: tell me what you're going to do
-f means force: actually do it!

No comments:

Post a Comment