how to remove all git files code example Example 1: delete .git folder rm -rf .git Example 2: remove git deleted files git commit -m "Deleted files manually"