linux保存git账号密码

1.执行设置账号和邮箱命令:

git config --global user.name "Your Name"

git config --global user.email "email@example.com"

 

2.打开.gitconfig增加配置信息:
[credential]

helper = store

 

3.在项目根目录执行命令:

git config --global credential.helper store

执行git需要输入账号密码的命令时会提示输入密码,此时密码会记住,以后再执行类似操作则不需要输入。


相关文档:
https://git-scm.com/book/zh/v2/Git-%E5%B7%A5%E5%85%B7-%E5%87%AD%E8%AF%81%E5%AD%98%E5%82%A8

 

【版权申明】未经博主同意,谢绝转载!(请尊重原创,博主保留追究权) https://www.cnblogs.com/facetwitter/p/14646597.html

posted @ 2021-04-12 09:29  saneim  阅读(863)  评论(0编辑  收藏  举报