linux下
在~/下, touch创建文件 .git-credentials, 用vim编辑此文件,输入内容格式:
touch .git-credentials
vim .git-credentials
https://{username}:{password}@github.com
2. 在终端下执行 git config --global credential.helper store
3. 可以看到~/.gitconfig文件,会多了一项:
[credential]
helper = store
更多:
windows下: http://www.cnblogs.com/ballwql/p/3462104.html
本文详细介绍了在Linux环境下如何通过touch命令创建.git-credentials文件,并使用vim进行编辑,然后执行gitconfig --global credential.helper store命令来配置GitHub全局Git凭据存储。操作后,可以看到~/.gitconfig文件新增了对应配置。
2991

被折叠的 条评论
为什么被折叠?



