在~/下, touch创建文件 .git-credentials:
touch .git-credentials
# 用vim编辑此文件,
vim .git-credentials
#输入内容格式
https://username:[email protected]
2. 在终端下执行
git config --global credential.helper store
可以看到~/.gitconfig文件,会多了一项:
[credential]
helper = store
原文地址:https://www.cnblogs.com/lishijia/p/9091069.html
时间: 2024-08-28 10:27:51