用ssh的地址初始化了本地库,能动态切换成https吗?还是要重新clone本地库
git remote remove xxxxx git remote add xxxxx url
或者
git remote set-url xxxx url
No problem, just operate git remote again For example
git remote add <name> https://....
or
git remote set-url <name> https://...
Just enter the url item in .git/conf in your project directory and it will be ok
git remote remove xxxxx
git remote add xxxxx url
或者
git remote set-url xxxx url
No problem, just operate git remote again
For example
or
Just enter the url item in .git/conf in your project directory and it will be ok