使用 XCODE 的 GIT 教程
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8410129/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Tutorial on GIT with XCODE
提问by Jim
I'm trying to understand how to use GIT with XCode 4.2.
我试图了解如何在 XCode 4.2 中使用 GIT。
I haven't been using GIT actively, but while I was walking through a couple of git operations mentioned in this linkit appears that I have a single repository with many projects in it and a recent project in a repository all by itself.
我没有积极使用 GIT,但是当我浏览此链接中提到的几个 git 操作时,似乎我有一个包含许多项目的存储库和一个存储库中的一个最近的项目。
I want to carefully take the project I am currently working on and put it into its own repository so I can safely leverage some of the branching capabilities.
我想小心地将我目前正在处理的项目放入自己的存储库中,这样我就可以安全地利用一些分支功能。
I'm hesitant to begin until I have a better understanding of what's going on. I'd like to know how much is handled within XCode and what I have to do at the command line.
在我对正在发生的事情有更好的了解之前,我很犹豫要不要开始。我想知道在 XCode 中处理了多少以及我必须在命令行中做什么。
回答by bryanmac
@manojids comment to learn a source control system (like git) outside of a specific editors integration is a good point. Try to understand the source control system. The integration is a convenience, not a crutch.
@manojids 评论在特定编辑器集成之外学习源控制系统(如 git)是一个很好的观点。尝试了解源代码控制系统。集成是一种便利,而不是拐杖。
Outside of that advice, apple has some docs outlining specifics of how XCode works with git. Here's the link:
除了这些建议之外,苹果还有一些文档概述了 XCode 如何与 git 一起工作的细节。这是链接:
A good online resource is the pro git book available here:
一个很好的在线资源是这里提供的 pro git book:
回答by iBug
If you want to learn and understand Git and its concepts in detail then this book would be best for you here is the link.
如果你想详细学习和理解 Git 及其概念,那么这本书最适合你,这里是链接。
Or you can have a drill on it practically if you follow this tutorial.
或者,如果您按照本教程进行操作,您实际上可以对其进行练习。
I hope you will get help.
我希望你能得到帮助。