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