Forum Navigation
You need to log in to create posts and topics.

Remove .git directories from cloned branch


User cloned repository from remote git and now wants to add directories to local git. it will report error that git repo already exists


Remove all .git directories before adding new git repo information

find . \( -name “.git” -o -name “.gitignore” -o -name “.gitmodules” -o -name “.gitattributes” \) -exec rm -rf — {} +