remove git in a folder code example Example 1: remove git rm -rf .git Example 2: delete .git folder rm -rf .git