git免密码

前提是SSH已经搞好
1.git免密码

打开git bash

输入如下命令:

cd ~
touch .git-credentials
vim .git-credentials
https://{username}:{password}@github.com


git config --global credential.helper store

接着打开~/.gitconfig文件会发现多了一项:
 [credential] helper = store

2.tortoiseGit 免密码

打开git bash
vi .gitconfig

增加如下内容
[user]
name=your git account
mail=your git mail

$:wq!

重新使用tortoisegit 就可以了!

posted @ 2020-10-19 09:43  豆牙  阅读(96)  评论(0)    收藏  举报