It's simple if you already have Homebrew:Īssuming you have homebrew installed, type the following: brew install git The OS X Installer does not support installing to a disk containing Time.MacOS Monterey delivers groundbreaking new features that help users connect in new ways, accomplish more, and work seamlessly across their Apple devices. is an existing system, the installer upgrades the system to the new version. This should automatically install git and set it in your path, replacing the Apple one. If the output of the above command shows the latest version and does not mention Apple with the version details, then you are all set. $ sudo mv /usr/bin/git /usr/bin/git-apple IF YOU DON'T HAVE HOMEBREW, FOLLOW THESE STEPS If however you still see apple version, then type the following two lines, which will manually set our path to the local git distro instead of the Apple one. Nice! We’re safe now! And next time you can just…Īfter searching for "trouble upgrading git on mac" on Google, I read several posts and attempted the following before resolving the problem by completing step 4: Quit terminal and open a new terminal, then check version. I updated my terminal path by using the above mention export command. Every time I quit the terminal and restarted it, when I typed git -version the terminal, it still return the older version 1.8. I followed the README.txt instructions for upgrading to the current version 2.0.1 that comes with the. dmg installer and when I restarted the terminal, still no go. I looked for /etc/path/ folder as instructed above and the directory called "path" does not exist on my Mac. Then I recalled I have Homebrew installed on my Mac and ran the following: brew -version I am running OS X Mavericks version 10.9.4. If anyone has some insight as to why this worked, further insight would be greatly appreciated. I probably have some left over path settings on my system from working with Ruby last year.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |