Remove untracked files from the working tree
Given you have modified and untracked files:
# On branch master
# Changes not staged for commit:
#
# modified: Gemfile
#
# Untracked files:
#
# docs/
# file1.log
When you run: git clean -fd
Then you should have only the modified files:
# On branch master
# Changes not staged for commit:
#
# modified: Gemfile
#
Written by Gabriel Reis
Related protips
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#