我正在尝试在一台开发机器上同时处理多个(两个或三个)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 passwordGo to the project folder and type the git commands.
更多推荐
我如何在一台开发计算机上拥有多个git帐户?
发布评论