【ubuntu】记住gitlab的登录账号密码

一、场景

    当我们拉取多个项目时,每次总要输入密码,http方式的时候

 

 

二、方法

git config --global credential.helper store

然后可以手动配置账号密码

配置~/.gitconfig文件

复制代码
[user]
    name = test
    email = test@email.com
[credential]
    helper = store
[filter "lfs"]
    smudge = git-lfs smudge -- %f
    process = git-lfs filter-process
    required = true
    clean = git-lfs clean -- %f
复制代码

配置~/.git-credentials凭据

https://username:passwd@gitlab.test.com

然后我们再拉取项目,就不用输入账号密码了

 

 

 

 

参考链接:

ubuntu记住gitee账号密码_git存密码的地方 ubuntu-CSDN博客

posted @   代码诠释的世界  阅读(156)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
历史上的今天:
2023-06-12 【zipfile】python基于zipfile的暴力破解加密zip文件
2023-06-12 【vim】批量替换文件内容
点击右上角即可分享
微信分享提示