1. 显示当前Git仓库的远程仓库地址
git remote -V
2. 更改Git仓库的远程仓库地址
git remote set-url origin [new-remote-url]
3. 验证是否更改成功,显示Git仓库的远程仓库地址
git remote -v
4. 将更改后的代码提交到新的远程仓库地址
git push origin master
1. 显示当前Git仓库的远程仓库地址
git remote -V
2. 更改Git仓库的远程仓库地址
git remote set-url origin [new-remote-url]
3. 验证是否更改成功,显示Git仓库的远程仓库地址
git remote -v
4. 将更改后的代码提交到新的远程仓库地址
git push origin master