天天看点

[Linux git]Linux下git push 不用每次输密码的方法

Linux下

在~/下, touch创建文件 .Git-credentials,

touch .git-credentials

vim .git-credentials

编辑此文件,输入内容格式:

https://{username}:{password}@github.com

例如 https://zhang3:[email protected]

2. 在终端下执行  git config --global credential.helper store

3. 可以看到~/.gitconfig文件,会多了一项:

[credential]

    helper = store      

继续阅读