git push时免除输入账号密码

来源:互联网 发布:android merge性能优化 编辑:程序博客网 时间:2024/04/28 12:16

linux下

在~/下, touch创建文件 .git-credentials, 用vim编辑此文件,输入内容格式:

touch .git-credentials

vim .git-credentials

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


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

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

[credential]    helper = store

更多:

windows下: http://www.cnblogs.com/ballwql/p/3462104.html


转自:http://blog.csdn.net/kevinew/article/details/24588123

0 0