解决github每次pull push输入密码问题

# 解决git pull/push每次都需要输入密码问题

git bash进入你的项目目录,输入:

bash 复制代码
git config --global credential.helper store

然后你会在你本地生成一个文本,上边记录你的账号和密码。配置项写入到 "C:\Users\用户名\ .gitconfig" 文件中。

然后你使用上述的命令配置好之后,再操作一次git pull,然后它会提示你输入账号密码,这一次之后就不需要再次输入密码了。

此外,相关操作
git config credential.helper 记住保存账号密码、关闭取消密码自动存储

取消(删除)记录账号和密码

bash 复制代码
git config --global --unset credential.helper

查询 凭证存储模式

bash 复制代码
git config --global credential.helper
或
git config --global --list
或
git config --global -l

修改 配置文件

bash 复制代码
git config --file=~/.git_credentails --global credential.helper "store"
或
git config --global  user.name "store"
相关推荐
spiker_2 小时前
使用 Go 和 Gin 框架构建简单的用户和物品管理 Web 服务
数据库·后端·golang·开源·go·github·gin
超雄代码狂5 小时前
Git分支-团队协作以及GitHub操作
git·github
匆匆整棹还7 小时前
vscode提交修改Failed to connect to github.com port 443: Timed out
ide·vscode·github
光影34159 小时前
ssh -T git@github.com 出现异常
git·ssh·github
爱吃涮毛肚的肥肥(暂时吃不了版)10 小时前
Linux高阶——0928—Github数据上传&markdown语言
linux·git·github
keep7541 天前
GitHub的使用
github
李宥小哥2 天前
Nginx03-使用
nginx·中间件·github
爱里承欢。2 天前
解决Github打不开或速度慢的问题
github