removing a repository from a project in vs code code example Example 1: remove git repository vscode sudo rm -rf .git Example 2: how to remove git repository from a project rm -rf .git