我如何在一台开发计算机上拥有多个git帐户? [英] How can I have multiple git accounts on a single development machine?
问题描述
我正在尝试在一台开发机器上同时处理多个(两个或三个)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帐户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!