进入到当前目录执行命令,先上图后分解
获取SSH或者HTTPS地址
git命令模式进入当前项目目录查看当前:
$ git remote -v |
SSH切换HTTP:
git remote set-url origin https://github.com/luojunchong/PLAN.git |
HTTP切换SSH:
$ git remote set-url origin git@github.com:luojunchong/PLAN.git |
到此演示完毕!
进入到当前目录执行命令,先上图后分解
获取SSH或者HTTPS地址
git命令模式进入当前项目目录查看当前:
$ git remote -v |
SSH切换HTTP:
git remote set-url origin https://github.com/luojunchong/PLAN.git |
HTTP切换SSH:
$ git remote set-url origin git@github.com:luojunchong/PLAN.git |
到此演示完毕!