How to modify the remote warehouse address in git

1. Directly modify the remote warehouse address

git remote set-url origin 复制上仓库地址

2. Delete first and then modify the address

git remote rm origin
git remote add origin 复制上仓库地址

In addition, check the remote warehouse address

git remote -v

Guess you like

Origin blog.csdn.net/qq_17355709/article/details/126140270