[翻译] USING GIT IN XCODE [2] 在XCODE中使用GIT[2]

简介:

USING GIT IN XCODE

http://www.cimgf.com/2013/12/10/using-git-in-xcode/

USING AN EXISTING REMOTE PROJECT IN XCODE

To clone a copy of an existing remote repository, open the Organizer in Xcode and select Repositories.  Click the plus (“+”) button in the lower left hand corner of the Organizer, and select “Checkout or Clone Repository…”.

打开Xcode中的Organizer并选择Repositories,选择下图所示就可以拷贝远程的版本了。

Xcode will present a dialog requesting a URL or file path.  Xcode can handle both ssh and https URLs for git repositories.  Be sure to specify the full URL for the repository, which is typically available on the project page for Github or Bitbucket.

Xcode会弹出一个对话框,需要你提供一个URL地址或者是文件地址,Xcode可以处理ssh或者https方式的URL。确保填写的URL是正确的,这个URL地址在Github或者Bitbucket上有提供。

If the repository is private and requires authentication, Xcode will request your credentials for the repository.

如果这个版本是私有的而需要你验证,Xcode会要求你输入验证信息。

Provide your credentials and click OK.  Xcode will store your credentials in the keychain for subsequent accesses of the remote repository.  Note that Xcode can also handle ssh key authentication in addition to name and password.  Once Xcode has authenticated with the remote repository, Xcode will request a location to store the project, and then project will be cloned.  Once cloned the project can be opened or shown in the finder.

If you run into an issue with using the Checkout or Clone approach and authentication, Select “Add Repository…” instead.  You can then add your authentication information for the repository, and clone from there.  This approach worked for me in cases where using Checkout or Clone did not.

When the clone is complete, the local working copy is ready for updates.

填写了正确的信息后并点击OK,Xcode会存储证书信息到keychain中,便利于随后的版本控制操作。注意哦,Xcode是能够处理ssh方式验证信息的。一旦Xcode验证通过了远程的版本,Xcode会询问你一个本地地址用来存储工程,当你选择好地址后,点击确认,这个工程就可以保存到本地了。

如果你在用 Checkout 或者 Clone approach 时出现了问题,请选择 “Add Repository…”来代替。之后,你可以在那里把你的验证信息添加到版本中,后续使用都是一样的。

当工程项目拷贝结束了,这个本地的版本就可以进行更新操作了。

目录
相关文章
|
开发工具 iOS开发 git
mac安装git后,在终端里运行git命令,系统提示需要安装Xcode问题解决
直接下载git for mac 安装包,https://git-scm.com/download/mac 安装完后,git的默认安装目录是:/usr/local/git 但是使用 which git 命令后,发现git的目录是:/usr/bin/git 意思是我们安装的git-xxx.dmg默认路径在/usr/local/git,但Mac系统执行git命令却去/usr/bin/git下找。
3085 0
|
开发工具 git iOS开发
Mac 下为 XCode 创建 Git 服务器 - 简单得不能再简单
Mac 下为 XCode 创建 Git 服务器 - 简单得不能再简单 太阳火神的美丽人生 (http://blog.csdn.net/opengl_es) 本文遵循“署名-非商业用途-保持一致”创作公用协议 转载请保留此句:太阳火神的美丽人生 -  本博客专注于 敏捷开发及移动和物联设备研究:iOS、Android、Html5、Arduino、pcDuino,否则,出自本博客的文章拒绝转载或再转载,谢谢合作。
1054 0
|
开发工具 iOS开发 git
Using GIT In Xcode
Using GIT In Xcode Post by Joe Keeley on December 10, 2013 Git has become a very popular version control system in iOS and Mac development.
1238 0
|
开发工具 iOS开发 git
iOS开发那些事-Git在Xcode中的配置与使用
<p>很多Git命令都是在命令行下运行的,命令行下管理Git有很多优点不用多说。但最大的缺点是要求用户记住这些命令。因此Git图形界面还是很受一些用户欢迎的,其中Xcode作为集成开发环境工具,也提供了一定Git图形界面功能。但是要想在Xcode中使用Git管理工程代码还想需要进行一些配置,然后才能使用。</p> <p>如果我们是使用Xcode 4创建的一个iOS工程,在终端的命令行中提交代码
1531 0
|
开发工具 iOS开发 git
iOS开发那些事-Git在Xcode中的配置与使用常见问题总结
<p>书接上回提出的Git在Xcode中的配置与使用常见问题4个问题</p> <p><span id="more-255"></span></p> <p>问题1,如何在Xcode中创建代码库,并添加和提交代码到代码库?</p> <p>问题2,如何在Xcode中提交推送给远程服务器代码库?</p> <p>问题3,如何在Xcode中克隆远程服务器代码库到本地?</p> <p>问题4,如何使用Xco
1867 0