Re: Regular git vs. "Apple Git" - How and Why?
Re: Regular git vs. "Apple Git" - How and Why?
- Subject: Re: Regular git vs. "Apple Git" - How and Why?
- From: Kyle Sluder <email@hidden>
- Date: Fri, 13 Nov 2015 17:17:45 -0600
On Fri, Nov 13, 2015, at 05:00 PM, João Varela wrote:
> Hi Jerry
>
> >
> > Despite its limitations, I like to use the Source Control in Xcode instead of the git command line for common everyday tasks. I have an iMac and a MacBook Air which both have Xcode 7.1 and OS X 10.11. On the iMac, Xcode’s Source Control works great but on the Air I’ve had a lot of trouble the past few months, particularly repositories not showing in the menu, and “Scanning for working copies…” forever.
> >
> > On the iMac, git version reports
> > git version 2.4.9 (Apple Git-60)
> >
> > On the Air,
> > git version 1.8.2.3
>
>
> So I presume you got this versions by opening Terminal and typing "git
> version”. If so, what you are seeing are versions that are installed on
> your computer and that you can access via Terminal only. These versions
> of git are NOT those that Xcode uses. Xcode uses git that is inside its
> own package, usually at:
>
> /Applications/Xcode.app/contents/Developer/usr/bin/git
>
> Usually, the git that you use via Terminal is installed at:
>
> /usr/local/git/bin/git
This is not accurate nowadays. Most people run the git installed at
`/usr/bin/git`, which is essentially an alias for `xcrun`. If Xcode is
installed, it will run the git inside the currently xcode-selected
Xcode. Otherwise, it will print an error asking you to install Xcode
from the App Store.
The output leads one to believe that Jerry's iMac is set up this way,
while his Air is set up more similarly to how you expect.
--Kyle Sluder
_______________________________________________
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