Upgrade Git
There is a Git come with Apple in/usr/bin/git
. We can use following command to check the install location.
$ which git
And using git --version
to check the information.
git version 2.7.4 (Apple Git-66)
Before we install the FFmpeg, we have to upgrade it. But I prefer to use the Git from git-scm. After download and install it. Open the README.txt, we can know the Git is installed to /usr/local/git
, and places symlinks into /usr/local/bin
.
We have to config the global path for git.
$ echo "export PATH=/usr/local/git/bin:/usr/local/bin:/usr/local/sbin:$PATH" >> ~/.bash_profile
$ source ~/.bash_profile
Then check it again.
$ git --version
git version 2.10.1