Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save BadUncleX/415edf872de87889e4b479a0c402ac06 to your computer and use it in GitHub Desktop.
Save BadUncleX/415edf872de87889e4b479a0c402ac06 to your computer and use it in GitHub Desktop.
shell脚本实现使用find和xargs删除隐藏的全部git子目录

shell脚本实现使用find和xargs删除隐藏的全部git子目录

find . -type f | grep -i "\.git" | xargs rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment