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
Written by Bryce Verdier
Related protips
1 Response
Sounds dangerous...
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#