一、git记住账号和密码

在使用 git 使用 https推送的时候一直需要输入密码。就可以试试下面的方法

1. 全局记住

windows 在git bash 中执行以下命令
linux 直接在bash中执行

git config --global credential.helper store

2. 取消全局记住

如果是自己输错了,就需要取消全局记住
git 提示 fatal: Authentication failed for… 但是没有弹出用户名和密码弹窗,就可以使用如下命令:

git config --system --unset credential.helper
Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐