git免密码(https方式)
新建文件并保存密码
touch ~/.git-credentials
vim ~/.git-credentials
添加内容
https://{username}:{passwd}@gitee.com
* 添加git配置
执行下面命令添加配置
git config --global credential.helper store
* 查看~/.gitconfig文件变化
~/.gitconfig文件多出下面配置项
[credential]
helper = store
再尝试git push不再需要输入密码.