vishavjeet

singh.vishavjeet11@gmail.com

How can Change/Reset Repository

Posted on June 15, 2021



Check Remote Connection

> git remote -v

output similar to the following:

origin https://github.com/user1/oldrepo.git (fetch)

origin https://github.com/user1/oldrepo.git (push)

Set New Repo

>git remote set-url origin https://github.com/user2/newrepo.git

Again Check Remote Connection

>git remote -v

origin https://github.com/user2/newrepo.git (fetch)

origin https://github.com/user2/newrepo.git (push)


Sign In for comment and like the post.