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

  • SEARCH
  • Home
  • 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 8818137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:01:37+00:00 2026-06-14T05:01:37+00:00

I was able to create a snapshot for my project in XCode 4.5.1. But

  • 0

I was able to create a snapshot for my project in XCode 4.5.1. But now the same project just keeps telling me that:

Unable to create a snapshot
error: Malformed value for push.default: simple
error: Must be one of nothing, matching, tracking or current.
fatal: bad config file line 21 in /Users/oppih/.gitconfig

I remember that when I pushed another project onto github ealier today, I was prompted with this warning:

warning: push.default is unset; its implicit value is changing in 
Git 2.0 from 'matching' to 'simple'. To squelch this message 
and maintain the current behavior after the default changes, use: 

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use: 

  git config --global push.default simple

So I googled it and find this question not so long ago: 13148066, and got it settled, I use git config --global push.default simple since “This is a more intuitive behavior, which is why the default is getting changed to this.”

I think my problem with XCode must have a connection with this git option update.

Back to XCode, I did not choose to setup a git repo in my XCode project, but used the snapshot as a way to backup my code. I think there’s some trick with git in XCode’s snapshot, I cannot figure it out. Now I wonder if anyone can tell me how to re-enable the snapshot in XCode (while not to change the .gitconfig [push.default] option)?

  • 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-06-14T05:01:38+00:00Added an answer on June 14, 2026 at 5:01 am

    I managed to solve my own problem. See it in Question 10449374 for the related details.

    The main problem in this case is that: Xcode just install (along with the Command Line Tools) its own version of git in /Applications/Xcode.app/Contents/Developer/usr/bin .

    And somehow, Xcode also hard coded it would use its own version of tools (such as git). And (I don’t know why) Xcode’s “snapshot” feature has some integration with git.

    So when I:

    1. installed a new version of git via homebrew,
    2. update the new push.default option in ~/.gitconfig ,
    3. want to create a snapshot in an Xcode project

    Then I will encounter the problem I described above.

    Here’s my solution:

    1. change into the Xcode directory:

      cd /Applications/Xcode.app/Contents/Developer/usr/bin

    2. rename the Xcode’s git like this:

      sudo mv ./git ./git-xcode-usr-bin

    3. link my own git which is installed through homebrew:

      sudo ln -s /usr/local/bin/git ./git

    And I did the same thing with /usr/bin/git

    sudo mv /usr/bin/git /usr/bin/git-xcode-usr-bin
    sudo ln -s /usr/local/bin/git /usr/bin/git
    

    This will acctually link /usr/local/Cellar/git/1.8.0/bin/git (because I’m use git 1.8.0 at the present)

    It’s a little tricky, and I have to update the link if I upgrade the homebrewed git in the future. And it really works fine with Xcode’s snapshot and the new push.default option.

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

Sidebar

Related Questions

I am able to create div tag dynamically but unable to create form tag
I am able to create JFormatted TextField that accepts only float values,but I am
Function constructors are able to create objects in javascript but I have a more
I'm trying to create a distributable zip of my project that contains several configuration
Being able to create javascript code on the fly is pretty cool. That is
I'm trying to create a program that will be able create and send tcp
I have been able to create a nice WCF service for an integration project
We are able to create new entities without any issues, but updating an existing
I've been able to create a standalone attachment, but the content_type ends up as
Recently I was able to create a tablet software for my Cerebral Palsy girl

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.