gitlab - 如何为gitlab集成sourcetree

标签 gitlab atlassian-sourcetree

我在 github 上工作,并将其集成到我的一个项目的 sourcetree(MAC 版本)中。我想为 GITLAB 使用 sourcetree。但我无法将 gitlab 远程添加到源代码树。在存储库设置中,只有我可以看到主机类型为“未知”、“bitbucket”、“github”和“stash”。我使用了未知,但它对我没有帮助。

Sourcetree 版本 2.0.4 (2.0.4)

enter image description here

最佳答案

这对我有用,

第 1 步:点击 + New Repository> 从 URL 克隆

第 2 步:源 URL 中提供 URL,后跟您的用户名,

示例:

  • GitLab 存储库 URL:http://git.zaid-labs.info/zaid/iosapp.git
  • GitLab 用户名:zaid.pathan

因此最终网址应为http://zaid.pathan@git.zaid-labs.info/zaid/iosapp.git

注意:zaid.pathan@ 添加在 git 之前。

第 3 步:享受克隆的乐趣:)。

关于gitlab - 如何为gitlab集成sourcetree,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27570370/

相关文章:

gitlab - 在 Markdown 链接定义中引用另一个链接 (GitLab)

git - 使用 "Gitlab Workflow"vscode 扩展克隆私有(private)仓库

docker - gitlab-runner docker-machine 错误

git - 源代码树 - 如何还原推送的提交

Git(源树): gitignore already tracked files without deleting from online repository

git - Visual Studio 2019 在创建新的 Git 存储库时没有 GitLab 选项

git - 使用 SSH 连接到自己的 Web 服务器上的 Git 存储库

git - Git 中的自动超链接 Jira 问题在 SourceTree 中提交

github - 无法再从SourceTree登录到GitHub

git - Force SourceTree 忽略 git 文件中的行结尾