Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

remove untracked files git

# Print out the list of files which will be removed (dry run)
git clean -n

# Interactive and you will get a quick overview of what is 
# going to be deleted offering you the possibility to include/exclude 
# the affected files
git clean -i

# To remove files, run
git clean -f
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #untracked #files #git
ADD COMMENT
Topic
Name
9+7 =