git & github 遇到的问题

1 执行 push 命令

fatal: unable to access ‘https://github.com/AAAAboy/huashan.git/’: Failed to connect to github.com port 443: Timed out

解决方法:
在git bash中执行:git config --global --unset http.proxy

2 如何退出之前在git中登录过的github账号

在git bash中执行:git credential-manager uninstall

git credential-manager install

3 在某个仓库中保存账号密码

只需要在该仓库中的git bash中执行:
git config credential.helper store
后面输入的账号密码就会保存

如果希望全局保存的话则执行:
git config --global credential.helper store

删除git中缓存的用户名和密码
git credential-manager uninstall

保存在系统的凭据管理
git config [–global] credential.helper manager

密码保存在:C:\Users\Jay.git-credentials

猜你喜欢

转载自blog.csdn.net/Lu1048728731/article/details/115302918
今日推荐