目录

解决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"
本文是转载文章,点击查看原文
如有侵权,请联系 xyy@jishuzhan.net 删除
相关推荐
x-cmd1 小时前
[250416] GitHub Action 新升级,支持 Windows on Arm
arm开发·windows·github·github action
Sherry Wangs14 小时前
GitHub实用手册
github
uhakadotcom14 小时前
PyTorch 2.0:最全入门指南,轻松理解新特性和实用案例
后端·面试·github
LTPP15 小时前
掌握Rust Web开发的未来:Hyperlane框架全方位教程 🎓🔧
前端·后端·github
uhakadotcom15 小时前
Apache APISIX入门指南:快速理解与实战示例
后端·面试·github
Gladiator57516 小时前
博客记录-day144-力扣
github
小七_雪球16 小时前
10分钟搞定Vite项目部署:从开发到上线(GitHub Pages+Vercel)全流程
vue.js·github
敖行客 Allthinker17 小时前
GitHub 封禁中国 IP:影响、原因及应对
网络协议·tcp/ip·github
小七_雪球17 小时前
Permission denied"如何解决?详解GitHub SSH密钥认证流程
前端·github
小七_雪球19 小时前
GitHub Pages+Vercel双部署?小心publicPath/base让你前功尽弃!
vue.js·github