touch .git-credentials
然后用代码编辑工具打开刚才的文件,编辑如下:
这一步你要注意一下,如果你是dsdn的账号,注意一下后缀,应该是https://你的用户名:你的密码@code.csdn.net,这个根据情况而定
1.2添加 git config内容
进入git bash终端输入以下命令:
git config --global credential.helper store
touch .git-credentials
然后用代码编辑工具打开刚才的文件,编辑如下:
这一步你要注意一下,如果你是dsdn的账号,注意一下后缀,应该是https://你的用户名:你的密码@code.csdn.net,这个根据情况而定
1.2添加 git config内容
进入git bash终端输入以下命令:
git config --global credential.helper store