- First Check Remote List Using Following –
$ git remote -v
(remote name like – origin) repository url (fetch)
(remote name like – origin) repository url (push)
2. Remove Remote
$ git remote rm (remote name like – origin)
3. then add new remote
$ git remote add origin repo url