我们可以将 Github mac 应用程序与 GitLab 一起使用吗? [英] Can we use the Github mac app with GitLab?

查看:14
本文介绍了我们可以将 Github mac 应用程序与 GitLab 一起使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢与我的 GitHub 帐户一起使用的 GitHub Mac 应用程序.我加入了一个 GitLab 项目,我想知道是否可以将 GitHub 应用程序与 GitLab 存储库一起使用.我发现了一篇 帖子,其中讨论了 Windows GitHub 应用程序可与 GitLab 一起使用和 one 展示了如何添加存储库.这两篇文章都给了我希望 GitHub Mac 应用程序可以与 GitLab 一起使用.我还看到您可以在 GitHub Mac 上使用 BitBucket应用程序,但我不明白是否以及如何将 GitLab 存储库链接到我的 GitHub Mac 应用程序.

I like the GitHub Mac app, which I use with my GitHub account. I have joined a GitLab project and I was wondering whether I can use the GitHub app with a GitLab repository. I found a post that discuss that the Windows GitHub app works with GitLab and one that show how to add a repo. Both these posts gave me hope that the GitHub Mac App would work with GitLab. I also see that you can use BitBucket with the GitHub Mac app, but I don't understand whether and how to link a GitLab repository to my GitHub Mac app.

非常感谢!

推荐答案

使用 mac 应用程序,您必须在命令行上进行克隆.打开一个终端,导航到您想要成为本地存储库父级的目录,然后 git clone 该存储库.完成后,进入 github mac 应用程序并转到 File->Add Local Repo

With the mac app, you have to do the clone on the command line. Open a terminal, navigate to directory that you want to be the parent of your local repo, and git clone the repo. As soon as this is done, go into the github mac app and Go to File->Add Local Repo

然后您可以添加 repo 目录文件选择器,并从那里进行设置.第一次通过应用推送回源时,它会询问您的 gitlab 用户名和密码,并可选择将它们存储在钥匙串中.

You can then add the repo directory file picker, and from there you should be set. The first time you push back to origin through the app, it will ask for your gitlab username and password, and optionally store them in the keychain.

这篇关于我们可以将 Github mac 应用程序与 GitLab 一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆