git remote disconnect code example Example: how to disconnect local repo from remote master rm -rf .git