1. Linux Five Find command: Find,locate,whereis,which,type This you may use, when there are multiple versions of Git in your system, this will help you to see where you are currently using Git, where this git is.
2. Git official website This you will also need, from here to download the latest version of Git, I currently installed is 2.2.1, if there is no way to download, you can go here to download. After the download is complete, install this git.
3. After installation, you go to Commad line view and find that your git version is not updated, so how can you get the system to use the latest version of Git that you just installed instead of the other version?
4. execute the following code on Commad line. Let your system find /usr/local/git/bin this directory by default.
Export path= "/usr/local/git/bin:/usr/local/sbin:~/bin: $PATH" ' >> ~/.bash_profile
5. Execute git--version, and you'll find it's the latest git.
6. Reference Link: http://stackoverflow.com/questions/8957862/how-to-upgrade-git-to-latest-version-on-mac-os-x/8963503 #8963503
I met this problem, if there are other problems, welcome to discuss together.
at the same time, a brew update failure was encountered,
Unable to access ' https://github.com/Homebrew/homebrew/': Sslread () return error-36
Add an environment variable just fine, git_ssl_cainfo=/path/to/ca-bundle.crt .
OSX yosemite,pod install error RPC failed; RESULT=52,