how to remove the origin in git code example Example 1: delete remote add from local git remote remove origin Example 2: remove origin git git remote rm origin