git中,克隆好的本地库,能从ssh切换到https吗
巴扎黑
巴扎黑 2017-04-24 09:13:02
0
3
763

用ssh的地址初始化了本地库,能动态切换成https吗?还是要重新clone本地库

巴扎黑
巴扎黑

reply all(3)
迷茫

git remote remove xxxxx
git remote add xxxxx url

或者

git remote set-url xxxx url

Ty80

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template