git 免密码 - doc-cloud/git GitHub Wiki

git config --global credential.helper store

然后你会在你本地生成一个文本,上边记录你的账号和密码。