How to modify the remote warehouse address in Git, how to delete the old remote address and add a new remote address

1. First, right-click on the item to be viewed and select "Git Bash Here", and a command box will pop up.

2. Enter "git remote -v" to view the remote address of the project.

3. Delete and then add the remote warehouse through the command

git remote rm origin // 删除旧的远程地址
git remote add origin ******   // 添加新的远程地址

Guess you like

Origin blog.csdn.net/weixin_45844049/article/details/113178174