解决问题:
1、同事离职需要变更ssh
2、远程链接地址有误 需要变更
方式:
1、更换ssh配置,自行查询
2、在需要更新代码的目录下查看现有git配置 git config --list /
可以看到remote.origin.url的值,权限和地址等
查看当前远程分支信息:git remote -v
查看远程地址:git remote get-url origin
修改:git remote set-url origin ssh://。。。。
查询现用用户:git config user.name
更改:git config user.name "name"
查询现用邮箱:git config user.email
更改:git config user.email "name@**.com"