git 免密码push

git版本2.14.1

windows系统

用户根目录 .gitconfig 文件添加配置

[credential]
helper = store
[push]
default = simple

用户根目录 .git-credentials 文件添加配置

https://username:[email protected]

本人这里没有像很多用户说的那样,用户名和密码有大括号{}包裹,只有个冒号:间隔二者

猜你喜欢

转载自www.cnblogs.com/liaoliaowang/p/10549650.html