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


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

查看所有标签

猜你喜欢:

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

The Lean Startup

The Lean Startup

Eric Ries / Crown Business / 2011-9-13 / USD 26.00

更多中文介绍:http://huing.com Most startups fail. But many of those failures are preventable. The Lean Startup is a new approach being adopted across the globe, chan ging the way companies are built and ......一起来看看 《The Lean Startup》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具