- 输入配置
# 根目录下创建.git-credentials
touch .git-credentials
vim .git-credentials
#对指定的host设定用户名-密码
https://{username}:{password}@github.com
- 载入配置
git config --global credential.helper store
- 查看
[credential]
helper = store
# 根目录下创建.git-credentials
touch .git-credentials
vim .git-credentials
#对指定的host设定用户名-密码
https://{username}:{password}@github.com
git config --global credential.helper store
[credential]
helper = store