Overblog Tous les blogs Top blogs Automobiles & Véhicules
Editer l'article Suivre ce blog Administration + Créer mon blog
MENU
http://dzsmcp.over-blog.com/

dzsmcp.over-blog.com/

Publicité

Update Git Version Mac



Recently a vulnerability in Git was discovered that could lead to arbitrary code execution when a developer utilizes a malicious repository. The good news is that this issue has been patched and the fix is available in version 2.17.1.

Now let's upgrade!

Overview

In this guide we are going to walk through how to upgrade Git via Homebrew. First we will install Homebrew and then install Git. Given that you may have Git already installed (e.g. via XCode), this guide will also walk you through how to change your path to use the official (non-Apple) distribution.

A few details before we get started:

If you are unfamiliar with Homebrew, it is a package manager for Mac that allows you to easily install and utilize a myriad a programs (i.e. Microsoft word 2016 mac update. formulae).

  • If you're a serious Git user and want the very latest version then it's best to get it from the Git website: Open Safari and browse to the Git developer site. Click on Mac OS X below Downloads.
  • Now, when we type 'git -version', we see the message 'git version 2.0.1'. So, the official release is taking precedence over the version from Apple, but the latest release is 2.2.1, so now, I need to update Git to the latest release. Updating the official version of Git. Download the latest version of Git for Mac.

Git Update Version Windows

I just bought a new Mac with OS X Lion and I checked in the Terminal what version of git is installed by default. I got the answer. Git -version git version 1.7.5.4 I would like to upgrade git to the latest version 1.7.8.3, so I downloaded the dmg installer 'git-1.7.8.3-intel-universal-snow-leopard.dmg' and I launched it. Step-by-Step on How to Update Git on Mac 1 minute read Introduction. I've seen a lot of questions on the web about how to update your Mac client to the latest version which contains the fix for the security vulnerability announced last week. If you want a newer git than the one in Xcode then you need to install it, this install should be to another place as if you update /usr/bin/git then an Apple update will overwrite this version. There are several ways to do this but as noted by @FranciscoGarcia they won't necessarily change the one used by Xcode just the command line version.

  • For this guide, I am assuming you are running MacOS 10.11 or higher
  • Additionally, check out the full Homebrew system requirements here before diving in

Step by Step Guide

Install Homebrew

https://beziercode-126.peatix.com. if Homebrew is already installed, you can skip to the Git section Civilization 5 complete edition free download.

Homebrew update git

For installation details, including system requirements check out the documentation here

Update Git Version Mac

Update Homebrew to ensure you are on the latest version
Run brew doctor to ensure everything is good to go

If all is well, the output should say Your system is ready to brew. Aster v7 keygen by dy5phoric.

Now let's get to Git.

Check your current version of git

If the version of git says something like git version 2.15.1 (Apple Git-101) then you are running the Apple version of Git, not the official distribution.

No worries, Homebrew has got us covered. https://what-is-a-mac-address-for-xbox-3605.peatix.com.

Install git via Homebrew
Change your local path to the Homebrew version
Check the git version

You should now see the current version of git, such as git version 2.17.1.

To upgrade in the future, simply run

Update Git Version

Conclusion

We are all set! Homebrew is installed, Git is installed, and we have changed our path to point to the current version. For further details on Homebrew and some additional resources, check out the links below.

Additional Resources

Version
  • Updating paths for Git on StackOverflow




Publicité
Partager cet article
Repost0
Pour être informé des derniers articles, inscrivez vous :
Commenter cet article