一、在用户家目录~生成 .git-credentials (username和password换成你自己的)
echo "https://{username}:{password}@github.com" > .git-credentials
二、添加到git 全局配置
git config --global credential.helper store
三、查看git配置
git config --list
输出内容会包含credential.helper=store