简体   繁体   English

如何使用Gitlab配置Xcode 9.1?

[英]How to configure Xcode 9.1 with Gitlab?

I have created a repo. 我已经创建了一个仓库。 on BitBucket. 在BitBucket上。 then I clone that repo to the Gitlab.now i want to connect Gitlab's repo to the Xcode(9.1).So I can directly push, pull and do all the git stuff from Xcode. 然后我将该仓库复制到Gitlab。现在我想将Gitlab的仓库连接到Xcode(9.1),因此我可以直接从Xcode推送,拉取和执行所有git的工作。

is there any way to do that? 有什么办法吗?

thanks!!! 谢谢!!!

The best way really is to follow the instructions GitHub gives you: 最好的方法实际上是遵循GitHub给您的指示:

First, go the correct directory 首先,进入正确的目录

cd <directory of your Xcode project>

It sound like you've already got a local Git project from Xcode. 听起来您已经从Xcode获得了本地Git项目。 If that's true, skip this code block. 如果是这样,请跳过此代码块。

git init .
git add .
git commit -s
<type in a commit message>

Last, push into your repository. 最后,推入您的存储库。 The following is copied directly from my own github account, after I created a new "test" repo. 创建新的“测试”存储库后,直接从我自己的github帐户复制以下内容。 Change the "dhalperi/test" part. 更改“ dhalperi / test”部分。 Hope its help you. 希望它能对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM