linux下方法
在~/下, touch创建文件 .git-credentials
touch .git-credentials
用vim编辑此文件
vim .git-credentials
输入内容格式
windows下方法
在终端下执行
git config --global credential.helper store //长期保存面
可以看到~/.gitconfig文件,会多了一项
[credential]
helper = store
本文介绍如何在Linux和Windows系统中设置Git,以便自动填充用户名和密码,实现对GitHub等源代码仓库的安全访问。通过简单的步骤,在Linux下使用touch和vim编辑器创建并编辑.git-credentials文件;在Windows下通过命令行配置git的全局凭证辅助器。
1万+

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



