Linux或者Mac下方法:

创建文件,进入文件,输入内容:

cd ~
touch .git-credentials
vim .git-credentials
https://{username}:{password}@github.com
在终端下输入:

git config --global credential.helper store
打开~/.gitconfig文件,会发现多了一项:

[credential]
helper = store
Windows方法: 方法同上面,只是第一步创建git-credentials有点不同。在%HOME%目录中,一般为C:\users\Administrator,也可以是你自己创建的系统用户名目录,反正都在C:\users\中。文件名为.git-credentials,由于在Window中不允许直接创建以"."开头的文件,所以需要借助git bash进行,打开git bash客户端,进行%HOME%目录,然后用touch创建文件 .git-credentials, 然后后面的操作同上面。

最新文章

  1. (转)我如何利用前端技术得到 XXOO 网站的 VIP
  2. 《理解 ES6》阅读整理:函数(Functions)(七)Block-Level Functions
  3. 理解并自定义HttpHandler
  4. codeforces Good Bye 2015 B. New Year and Old Property
  5. Question2Answer初体验
  6. 【Android】 PopupWindow使用小结
  7. Python解析HTML的开发库pyquery
  8. FxCop
  9. window.clearInterval与window.setInterval的用法(
  10. listvew加载更多
  11. kettle在linux启动spoon.sh报错
  12. Vue.js安装
  13. 程序员的Epic Fail [0]
  14. vue keep-alive内置缓存组件
  15. git 修改用户名和密码
  16. Python-序列号和模块复习-64
  17. PAT 1136 A Delayed Palindrome
  18. Azure系列2.1.6 —— BlobProperties
  19. Vue系列之 => 列表动画
  20. oracle存储过程批量插入测试数据

热门文章

  1. Request.UrlReferrer为空的问题
  2. mysql bit类型数据库中无法显示
  3. python 基础学习3-函数
  4. Mybatis的失误填坑-java.lang.Integer cannot be cast to java.lang.String
  5. Android中使用OKHttp上传图片,从相机和相册中获取图片并剪切
  6. 【界面优化】使用viewpagerindicator添加下划线滑动动画
  7. Java线程的几种状态
  8. iOS开发讯飞语音的集成
  9. Vue.js 组件笔记
  10. POJ 3041 Asteroids(匈牙利+邻接表)