我如何在一台开发计算机上拥有多个git帐户?

编程入门 行业动态 更新时间:2024-10-23 18:28:27
本文介绍了我如何在一台开发计算机上拥有多个git帐户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试在一台开发机器上同时处理多个(两个或三个)GitLab(甚至GitHub)项目.因为在配置后,IDE和git服务在尝试检出或克隆具有不同用户名/密码的另一个项目时具有主要用户的数据,因此系统会说找不到该项目或我没有执行此操作的权限./p>

如何在一台开发计算机上配置和使用多个git用户?

解决方案

您可以使用将凭据存储在每个项目中.

git config credential.helper store git push origin HEAD write user and password

转到项目文件夹并键入git命令.

I am trying to work simultaneously on more than one (two or three) GitLab (or even GitHub) projects on a single development machine. Because upon configuration the IDEs and the git service has the data of my primary user when I try to checkout or clone another project with a different username / password the system says either project is not found or I do not have permissions to do that.

How can I configure and use more than one git user on a single development machine?

解决方案

You can store your credentials in each project using.

git config credential.helper store git push origin HEAD write user and password

Go to the project folder and type the git commands.

更多推荐

我如何在一台开发计算机上拥有多个git帐户?

本文发布于:2023-11-14 09:18:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1586821.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多个   一台   机上   帐户   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!