I have a repository. ("git init")
I've done check-ins and commits and logs and stuff. But, how can I remove all traces of git and delete git off this directory (and subdirectories)?
I'm on Ubuntu.
This worked for me:
find . -name .git -print0 | xargs -0 rm -rf
Simply remove the .git
directories inside and you're done.
I would wildcard that .git
find . -name "*.git*" -print0 | xargs -0 rm -rf;