Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any differences with the git provided by Apple and the official git?

Tags:

git

ios

I've come across several topics about 'updating' or 'installing' an 'official' version of git to replace the git pre-installed by Apple.

I haven't been able to find the reasons/benefits for/of doing so... Can someone explain why doing this is important or unimportant?

Thanks in advance !

like image 388
Ankanitti Avatar asked Feb 18 '16 12:02

Ankanitti


People also ask

Does Mac come preinstalled with Git?

Git can be installed on the most common operating systems like Windows, Mac, and Linux. In fact, Git comes installed by default on most Mac and Linux machines!

How do I change my Apple Git?

The easiest way to update Git on Mac is to use the official installer. Download the installation file from the Git website. Run the installation and follow the install wizard to update Git to the latest version. Note: Using the install wizard to update Git overwrites the current installation.

What is the latest git version for Mac?

The latest version is 2.33.0, which was released 12 months ago, on 2021-08-30.

Does Mac terminal have Git?

Install Git on Mac OS X. There are several ways to install Git on a Mac. In fact, if you've installed XCode (or it's Command Line Tools), Git may already be installed. To find out, open a terminal and enter git --version .


1 Answers

It is basically the same as the upstream version at this point. You can see the differences in my github repo:

https://github.com/jeremyhu/git/commits/master

The major differences between Apple's git and mainline over time have been:

  • the use of SecureTransport and CommonCrypto instead of OpenSSL (merged into mainline)
  • git-svn improvements (merged into mainline)
  • fix for a regression that mainline didn't want to take at the time (merged into mainline)
  • test for that regression
  • Support for relocation on the filesystem (since Xcode.app can move around)
  • Support for Xcode.app-bundled gitconfig (for osxkeychain, etc)
  • Support for Xcode.app-bundled gitattributes (for diff options, etc)
  • Setting osxkeychain as credential.helper (since moved to a default in gitconfig)
  • trust_ctime off by default (should move to a setting in gitconfig)
  • Mark tests that fail on OSX as expected to fail
  • Update expected values for tests that are affected by Xcode.app's gitconfig
like image 77
Jeremy Huddleston Sequoia Avatar answered Sep 16 '22 11:09

Jeremy Huddleston Sequoia