git在用https进行push时候免输账密的方法

移动狂
• 阅读 1489

先新建一个文件

$ touch ~/.git-credentials
$ vim ~/.git-credentials

进去添加内容(github为github.com,码云为gitee.com)

https://{username}:{passwd}@gitee.com

然后再添加git配置

$ git config --global credential.helper store

可以查看~/.gitconfig文件的变化

[credential]
    helper = store

此时再push就不需要密码啦!

点赞
收藏
评论区
推荐文章
Easter79 Easter79
3年前
springboot2集成oauth2坑二(The bean 'scopedTarget.oauth2ClientContext', defined in class path resource )
码云地址:https://gitee.com/lpxs/lpspringcloud.git(https://gitee.com/lpxs/lpspringcloud.git)有问题可以多沟通:136358344@qq.com。(https://www.oschina.net/action/GoToLink?urlmailto%3A%E6%
Stella981 Stella981
3年前
InsightFace源码以及pre
一下摘自:https://blog.csdn.net/Fire\_Light\_/article/details/79602705(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fblog.csdn.net%2FFire_Light_%2Farticle%2Fdetails%2F7960
Stella981 Stella981
3年前
Git免登录,不需重复输入账号和密码
linux下在~/下, touch创建文件 .gitcredentials:touch .gitcredentials 用vim编辑此文件,vim .gitcredentials输入内容格式https://username:password@github.com2
Stella981 Stella981
3年前
Android史上最好的日历,是怎样设计开发的?
首先放出码云仓库地址(https://gitee.com/huanghaibin_dev/CalendarView"码云仓库地址")对于开源的UI库,最突出的特点莫过于以下三点UI方便自定义性能要优秀功能要强大记得2017年的时候,我从github、git上寻
Easter79 Easter79
3年前
TiDB Pre
8月30日,TiDB发布PreGA版。该版本对MySQL兼容性、SQL优化器、系统稳定性、性能做了大量的工作。TiDB:SQL查询优化器调整代价模型优化索引选择,支持不同类型字段比较的索引选择支持基于贪心算法的JoinReorder
Stella981 Stella981
3年前
Git 一般性操作
git全局设定gitconfigglobaluser.name“码云账号”gitconfigglobaluser.email“码云注册邮箱”git定位文件夹cd进入到需要同步的文件夹线面gitinit上传到gitgitadd.gitcommitm'
Stella981 Stella981
3年前
Jenkins配置下拉菜单联动效果
  在使用Jenkins集成时,经常需要配置一些环境信息,由于测试、线上、预发布需要切换环境和域名,需要在Jenkins中配置下拉菜单联动效果。  首先选择参数化构建过程,然后首先配置环境,环境分为:测试环境、预发布环境、正式环境,选择的组件为ChoiceParameter,Name定义为environment,选项为test、pre、onli
Stella981 Stella981
3年前
Hello ZeroMQ
HelloZeroMQWorld!安装gitclonedepth1https://github.com/imatix/zguide.git./configuremakemakeinstallCProject添加库gcc
Stella981 Stella981
3年前
Pre
PAT甲级1119,我先在CSDN上面发布的这篇文章:https://blog.csdn.net/weixin\_44385565/article/details/89737224(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fblog.csdn.net%2Fweixin_443855
Wesley13 Wesley13
3年前
Unity 获取场景中所有目标对象(包括不激活的对象)
usingUnityEngine;usingUnityEditor;usingSystem.Collections.Generic;publicclassExampleScript:MonoBehaviour{//获取场景中所有目标对象(包括不激活的对象)不包括Pre
Stella981 Stella981
3年前
Django之常用配置
<h1在其它文件导入及变量命名注意事项</h1变量命名:必须都大写<preclass'brush:python'fromdjango.confimportsettings</pre<h1静态文件夹配置</h1比如需要引入jquery、bootstrap等文件,需要配置静态文件,步骤如下:步骤一、在<项目名称目录下新建