Skip to content

Instantly share code, notes, and snippets.

@davidcsejtei
Created July 5, 2022 08:05
Show Gist options
  • Save davidcsejtei/b87f483318b65d84a093bce0d59376fd to your computer and use it in GitHub Desktop.
Save davidcsejtei/b87f483318b65d84a093bce0d59376fd to your computer and use it in GitHub Desktop.
Remove untraced git files and folders from local repo
# shows what would be removed, but not removing anything
git clean -d -n
# removes files and folders
git clean -d -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment