github在https协议下使用,如何免密码登陆

栏目: 服务器 · 发布时间: 6年前

内容简介:使用一条命令就可以解决

使用一条命令就可以解决 git config credential.helper store , 通过这条命令,就可以保存密码,再次推动的是就不用密码

具体操作的步骤

  1. 使用https协议对项目进行克隆
  2. 进入新克隆的项目执行命令
git config credential.helper store

# git config --unset credential.helper

检查 用户名和密码是否已经存储到本地磁盘

bash

 cat ~/.git-credentials
如果这个文件存在,就是表示已经成功

检查 配置文件

bash

 git config --get credential.helper
如果是输出是 store 表示,已经开始存储密码。

了解更多

https://git-scm.com/book/zh/v2/Git-%E5%B7%A5%E5%85%B7-%E5%87%AD%E8%AF%81%E5%AD%98%E5%82%A8


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Pro Git

Pro Git

Scott Chacon / Apress / 2009-8-27 / USD 34.99

Git is the version control system developed by Linus Torvalds for Linux kernel development. It took the open source world by storm since its inception in 2005, and is used by small development shops a......一起来看看 《Pro Git》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

SHA 加密
SHA 加密

SHA 加密工具