Skip to content

Instantly share code, notes, and snippets.

@mael
Last active May 30, 2019 06:15
Show Gist options
  • Save mael/612b5413e14e347aa326c8325106eef3 to your computer and use it in GitHub Desktop.
Save mael/612b5413e14e347aa326c8325106eef3 to your computer and use it in GitHub Desktop.
Delete all git files recursively from project
When we use .git in a project some times we need to do a fresh start or abandon
the project we definitely need to delete all hidden git repository files.

find . | grep .git | xargs rm -rf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment