removing remote from git code example Example 1: how to remove remote origin from git repo git remote remove origin Example 2: remove git remote git remote remove origin