git remove an origin code example Example 1: remove origin git git remote rm origin Example 2: remove a remote origin git git remote remove origin