参考:https://www.cnblogs.com/mq0036/p/17326419.html
1、切换到.git目录:
git config user.name ‘你的账号名’
2、cat config
3、方式1,git config credential.helper store
方式2,vim config ,添加
[credential]
helper = store --file .git/.my-credentials
4、cat config
5、切换到根目录:
git pull,需要再次输入用git账号,再输入密码,后面就不需要再输入了