美文网首页
Ubuntu保存git用户名和密码

Ubuntu保存git用户名和密码

作者: 胸毛飘逸 | 来源:发表于2020-12-11 14:12 被阅读0次

如何在Ubuntu下解决Git保存用户名和密码呢?

打开Git 配置文件,该文件中保存着所有的配置信息

vim ~/.gitconfig

修改配置文件,添加下面这一行。

[credential]
    helper = store

记住密码

helper = store #用来保存密码,提交一次会自动记住

密码保存一个小时

helper = cache -- timeout 3600 # 密码只保存一个小时

相关文章

网友评论

      本文标题:Ubuntu保存git用户名和密码

      本文链接:https://www.haomeiwen.com/subject/ujyjgktx.html