how to clear remote git code example Example 1: git remove remote git remote remove origin Example 2: how to remove remote origin from git repo git push -u origin master