how to delete a origin in git code example Example 1: remove origin git git remote rm origin Example 2: how to remove a git remote origin git remote remove origin