git reset wuth latest of remote code example Example: git reset remote origin $ git remote set-url origin https://github.com/USERNAME/REPOSITORY.git