git 问题排查

1.git push/pull无法免密登录,每次都需要重新输入账户密码

输入以下指令配置存储账户,[--global] 表示可选,如果用了,表示这是全局设置,否则只针对此项目

git config [--global] credential.helper store

git config [--global] user.name "xxxx"

git config [--global] user.email "xxxx"

可以 git config -l 查看当前设置, 这样就可以免密push/pull了

如果报 fatal: HttpRequestException encountered, 那就是git证书出问题了,需要重新安装一下,以下是下载地址,下载安装即可

https://github.com/microsoft/Git-Credential-Manager-for-Windows/releases

猜你喜欢

转载自www.cnblogs.com/WalkOnMars/p/12099552.html
今日推荐