reset with remote origin/master code example Example: git reset remote origin $ git remote set-url origin https://github.com/USERNAME/REPOSITORY.git