简体   繁体   English

XCode4 与外部 git

[英]XCode4 with external git

How do I add an external git repo (such as code.google.com) to Xcode with my project.如何使用我的项目将外部 git 存储库(例如 code.google.com)添加到 Xcode。 All I am able to get is to add in the repo, but not use it with any projects.我所能得到的只是添加到存储库中,但不要将它用于任何项目。 I have been trying the command line options from various websites with no success.我一直在尝试各种网站的命令行选项,但没有成功。

I find XCode has rather rudimentary SCM support.我发现 XCode 具有相当基本的 SCM 支持。 Do yourself a favour and use either the command line or a GUI client, you'll save headaches when things go wrong and the built in client with xcode doesn't always reveal things.帮自己一个忙,使用命令行或 GUI 客户端,当 go 错误并且带有 xcode 的内置客户端并不总是显示内容时,您将省去头痛。 Xcode is happy to look at the.git files or.svn files and tell if the status which is useful, but that's as far as I let it go. Xcode is happy to look at the.git files or.svn files and tell if the status which is useful, but that's as far as I let it go.

Xcode will create and manage the repository for you locally, but you will need to push your commits using the command line. Xcode 将为您在本地创建和管理存储库,但您需要使用命令行推送您的提交。 I've been using it with GitHub, and ran into no issues so far.我一直将它与 GitHub 一起使用,到目前为止没有遇到任何问题。

Once you push your repo to the web server, all the local commits will sync and upload.将您的存储库推送到 web 服务器后,所有本地提交都将同步并上传。

SourceTree is excellent , I use it and the CLI SourceTree 非常,我使用它和 CLI

http://itunes.apple.com/us/app/sourcetree-git-hg/id411678673?mt=12 http://itunes.apple.com/us/app/sourcetree-git-hg/id411678673?mt=12

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

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