如果使用 https 和远程仓库通信,Git 默认每次操作都需要输入用户名和密码,十分麻烦。
解决方法:
1、Git Bash t输入命令:
git config --global credential.helper store
2、修改 .git 目录下的 config 文件,增加如下设置:
[credential] helper = store
Enjoy it !