delete origin in git' code example Example 1: remove git remote git remote remove origin Example 2: git delete remote name git remote rm remote_name