git pull push 免密码输入

1: 进入当前用户目录下;

2: vi  .git-credentials 文件
git

3:输入:https://{username}:{password}@github.comgithub

4:保存退出后执行:git config --global credential.helper storeit

执行完后密码

/home/用户名/.gitconfig 会新增一项word

helper = store文件

这时再执行git push/pull的时候就不会在要求你输入密码了。vi