Skip to content

Instantly share code, notes, and snippets.

@nara-l
Created June 15, 2018 14:48
Show Gist options
  • Save nara-l/df270541514018223e54e74eaf1679dd to your computer and use it in GitHub Desktop.
Save nara-l/df270541514018223e54e74eaf1679dd to your computer and use it in GitHub Desktop.
How to clean untracked git files
# trying to commit without needing to add all those extra files? just clean them
git clean -n -d # to see the files and folders to be deleted first before applying command below
git clean -f -d # -f force clean and -d cleaning directories. git just deletes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment