简体   繁体   中英

XCode4 with external git

How do I add an external git repo (such as code.google.com) to Xcode with my project. 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. 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. 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. I've been using it with GitHub, and ran into no issues so far.

Once you push your repo to the web server, all the local commits will sync and upload.

SourceTree is excellent , I use it and the CLI

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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