# clean cache (.gitignore)
git rm -r --cached .
# add/set remote
git remote add origin https://github.com/user/repo.git
git remote set-url origin https://github.com/user/repo.git
git remote -v
# clean cache (.gitignore)
git rm -r --cached .
# add/set remote
git remote add origin https://github.com/user/repo.git
git remote set-url origin https://github.com/user/repo.git
git remote -v