Change repository URL View existing remotes : git remote -v Change the 'origin' remote's URL: git remote set-url origin https://github.com/user/repo2.git OR change the URL in the file .git/config