how to change a git repository code example Example: how to change remote origin guit $ git remote set-url origin [email protected]:USERNAME/REPOSITORY.git