八、git 更换仓库路径
2020-01-02 本文已影响0人
緦菍亭芷
描述:在使用git的时候一直是http方式,突然有一天不能用了,必须使用ssh;
我现在需要http换成ssh
方法一:命令修改
#查看当前方式
git remote -v
git remote set-url origin [ssh地址xxx]
#查看是否修改成功
git remote -v
git push -u origin --all
git push -u origin --tags
方法二:手动修改
#在当前工程下的根目录,打开.git文件
open .git

