git set remote comimt head code example Example: git set remote git remote set-url origin https://github.com/USERNAME/REPOSITORY.git