delete local git code example
Example 1: delete .git folder
rm -rf .git
Example 2: git remove repository local
$ rm -rf .git
Example 3: how to delete git repo locally
$ rm -rf .git
to delete git repository from local repo (from machine)
Example 4: How to Delete Local/Remote Git Branches
$ git branch -a
# *master
# b1
# remote/origin/master
# remote/origin/b1
$ git push origin --delete b1
# [...]
# - [deleted] b1