Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6065459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:23:34+00:00 2026-05-23T09:23:34+00:00

sorry, but I need a little help with Xcode 4 and git. I just

  • 0

sorry, but I need a little help with Xcode 4 and git. I just switched to Xcode 4 BECAUSE it supports git, but by now I don’t know how to set it up right.

I would like to use the terminal most of the time, as the UI of Xcode is to slow to use instead of a quick

$ git co master

or so, but I would like to use the pretty handy diff and maybe also commit function Xcode comes with.
If I let Xcode set up the local repo, I can’t find it with terminal, if I set the repo with the terminal, I can’t figure out how to tell Xcode “there is a repo, please have a look and get a notice of all the branches”. Instead it creates it’s own local copy so I have two visible, accessible but independent project folders.

I googled, but I can’t find a good tutorial for a local repo (later on I’ll try to add a remote repo too^^). Is there any understandable documentation of how to do set up git with Xcode 4 that will work nicely with any changes/commits/tags I’ll do within the terminal?

I know that I’ll get the “the file disappeared” message when swithcing branches, but I’ll also get that if I switch through the Xcode UI, so I gotta deal with that (side-question: I never had to, but how can I join all those people asking Apple to implement that the files that do not exist in the new branch just silently close, instead of annoying me with popups?)

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:23:34+00:00Added an answer on May 23, 2026 at 9:23 am

    Okay, I managed to get this done, although I find it quite confusing to get there, this is the way I set up projects (from now on), to use git from the terminal most of the time, but having the option for the Xcode-Diff and commit:

    Create your folder.
    Create a Subfolder
    (everything in the subfolder will be subversioned, everything in the some level as this subfolder, aka inside the folder won’t.. I always need that)
    create your .gitignore (the content of gitignore will be listed at the end)
    add another file, eg. a ReadMe.rtf
    in terminal, set up your git like usuall with:

    $ cd <path to your subfolder>
    $ git init
    $ git add .
    $ git commit -a -m "Your commit message"
    

    switch to Xcode, create a new Project like file->new->project (you should not be able to set up a git repo through this dialog any longer, the check box should be disabled)
    Check back inside the organizer, there should be a repo called like your Subfolder.

    To add a remote repo, just do as usual in Terminal.

    The .gitignore content:

    .svn/entries
    build
    
    .DS_Store
    *.swp
    *~.nib
    
    build/
    
    *.pbxuser
    *.perspective
    *.perspectivev3
    
    //for xcode 4
    xcuserdata
    
    //User-specific project settings
    *.mode1v3
    *.mode2v3
    

    Hope that helps someone else too 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry to bother again, but I really need help transforming this Python2 code into
Sorry for the title but I don't know other way of asking. EDITED FOR
I need a little bit of help with using pointers in C++. Sorry to
Using MS Access. I'm sorry that the title is vague--i just don't exactly know
Sorry if this sounds like a really stupid question, but I need to make
sorry for the stupid questions but there are just some things about WCF I
Sorry for my inpatience but after weeks staying up late and just having put
wonder if someone can help me i know what i want to achive but
Sorry for being somewhat vague but so is the project I'm leading now. I
I need a little help on finding a tutorial or sample on taking a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.