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