# 本地仓库修改远程仓库的url
# 01)查看远程仓库的源
git remote
1
- 执行结果如下:
32802@gun MINGW64 /d/uniapp_demo/movie_uniapp (main)
$ git remote
origin
1
2
3
2
3
# 02)查看源的url地址
git remote get-url 远程仓库的别名
1
- 执行结果如下:
32802@gun MINGW64 /d/uniapp_demo/movie_uniapp (main)
$ git remote get-url origin
https://github.com/triggergun/movie_uniapp.git
1
2
3
2
3
# 03)设置远程仓库的url
git remote set-url origin【别名】 远程仓库的url
1
注意:( 如果未设置ssh-key,此处仓库地址为 http://... 开头)
- 执行结果如下:
32802@gun MINGW64 /d/uniapp_demo/movie_uniapp (main)
$ git remote set-url origin https://gitee.com/ground-gun/muyoumuxi.git
1
2
2