← Hariharan Umapathi's posts

Updating the remote repo url in exisiting repo copy

Hariharan Umapathi··
View Original ↗

Hi all,

kindly update your tolkapy remote repository url with the following commands

# To view configured remote repositories
git remote -v
# In the above image multiplle remotes shown
# In your copy almost only one remote
you will have which is "origin"

Next check the old remote configured with ssh url or https url

# Old URL
# https
https://gitlab.com/kachilug/tamilrulepy.git
# ssh
git@gitlab.com:kachilug/tamilrulepy.git
# New URL
# https
https://gitlab.com/kanchilug/tolkapy.git
# ssh
git@gitlab.com:kanchilug/tolkapy.git

To change this need to execute the following command with respective remote tame my remote name is upstream

git remote set-url upstream git@gitlab.com:kanchilug/tolkapy.git

to verify remote url is updated or not enter the (git remote -v) command we used first.

there after we can do pull push operations if we have respective access.