• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Regular git vs. "Apple Git" - How and Why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regular git vs. "Apple Git" - How and Why?


  • Subject: Re: Regular git vs. "Apple Git" - How and Why?
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 13 Nov 2015 11:30:53 -0800


On Nov 13, 2015, at 10:08 AM, Jerry Krinock <email@hidden> wrote:

I suspect this is the trouble.  Bloggers explain how to replace the Apple Git, implying that it is bad, but don’t explain this assumption.

I’ve never heard of that. AFAIK Apple ships a regular version of Git, they just amend the version string to stamp it with their build number. You might want to replace it with a newer version if you want some new Git feature, but not because there’s something wrong with the one that comes from Apple.

• Which do I want, for best working with Xcode, the the special “Apple” version of git, or the latest git 2.6.2 from sourceforge.net?

I suspect Xcode will always use the version of Git it’s packaged with, regardless of which version happens to be in the $PATH of your shell.

Apparently, updating Xcode is updating git on the iMac but not on the Air.  Why might this be?

You’ve probably got an old version of git in some directory in your shell’s $PATH, most likely /usr/local/bin. Enter “which git” at a shell prompt to see where it is.

If you want to remove it, it’s not as easy as just a single rm — Git actually consists of a large number of binaries, one for each subcommand (git-status, git-pull, git-commit, etc.) The “git” tool is just a convenience that launches the appropriate tool. If this Git was installed through a package manager like homebrew or macports, you can use their uninstall command to remove it. Otherwise I’m not sure how to find all the files.

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Regular git vs. "Apple Git" - How and Why?
      • From: Jerry Krinock <email@hidden>
References: 
 >Regular git vs. "Apple Git" - How and Why? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Regular git vs. "Apple Git" - How and Why?
  • Next by Date: Re: Regular git vs. "Apple Git" - How and Why?
  • Previous by thread: Re: Regular git vs. "Apple Git" - How and Why?
  • Next by thread: Re: Regular git vs. "Apple Git" - How and Why?
  • Index(es):
    • Date
    • Thread