Git 保存登录凭证

如果使用 https 和远程仓库通信,Git 默认每次操作都需要输入用户名和密码,十分麻烦。

解决方法:

1、Git Bash t输入命令:

git config --global credential.helper store

2、修改 .git 目录下的 config 文件,增加如下设置:

[credential]
    helper = store

 

Enjoy it !

上一篇:Laravel常用包


下一篇:数据结构(五)-环形链表及约瑟夫问题