We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Github获取远程库时,有ssh和https方式,前者可以直接连接无需输入账号密码而后者需要:
// 移除旧的关联 $ git remote rm origin // 添加新的关联 $ git remote add origin git@github.com:deepthan/Front-end-resource-collection.git
git config --global credential.helper store
这一步会在用户目录下的.gitconfig文件最后添加:
[credential] helper = store
git config --global
.gitconfig
[user] name = alice email = alice@aol.com [push] default = simple [credential] helper = store
git config --global user.email "alice@aol.com" 操作的就是上面的email git config --global push.default matching 操作的就是上面的push段中的default字段 git config --global credential.helper store 操作的就是上面最后一行的值
git config --global user.email "alice@aol.com"
git config --global push.default matching
参考:解决向github提交代码是老要输入用户名密码
向github提交代码是老要输入用户名密码
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Github获取远程库时,有ssh和https方式,前者可以直接连接无需输入账号密码而后者需要:
这一步会在用户目录下的.gitconfig文件最后添加:
这一步会在用户目录下生成文件.git-credential记录用户名密码的信息.
git config --global
命令实际上在操作用户目录下的.gitconfig
文件, 我们cat一下此文件(cat .gitconfig), 其内容如下:git config --global user.email "alice@aol.com"
操作的就是上面的emailgit config --global push.default matching
操作的就是上面的push段中的default字段git config --global credential.helper store
操作的就是上面最后一行的值参考:解决
向github提交代码是老要输入用户名密码
The text was updated successfully, but these errors were encountered: