Удалить git из папки
rm -rf .git*
Lovely Louse
rm -rf .git*
rm -rf .git
$ rm -rf .git
$ rm -rf .git*
# Remove folder from git and not local filesystem
git rm -r --cached FolderName
git commit -m "Removed folder from repository"
git push origin master
# After the push, make sure to add the folder to .gitignore for future iterations
$ rm -rf .git
to delete git repository from local repo (from machine)