Last Updated: September 09, 2019
·
7.721K
· btv

git clean

I just learned about this command today and thought I would share it with others.

git clean

synopses : Remove untracked files from the working tree
description:
Cleans the working tree by recursively removing files that are not under version control, starting from the current directory.

Normally, only files unknown to git are removed, but if the -x option is specified, ignored files are also removed. This can, for example, be useful to remove all build products.

If any optional <path>... arguments are given, only those paths are affected.

You can read more about it here: http://git-scm.com/docs/git-clean

1 Response
Add your response

Sounds dangerous...

over 1 year ago ·