change git remote origin to new repository code example
Example: git config remote.origin.url
# change remote url
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
# change remote url
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git