germapublic.blogg.se

Update git on mac
Update git on mac





  1. UPDATE GIT ON MAC INSTALL
  2. UPDATE GIT ON MAC MAC

If you do which -a git you'll notice there are multiple versions of git installed assuming you have one installed from XCode (or straight from git) and another that you've just installed from homebrew.

UPDATE GIT ON MAC INSTALL

For newer versions of macOS, the problem that myself and possibly others experienced is due to simply not restarting the terminal after running brew install git. For details see comment and my comment below it that explains where confusion can happen after installing git with homebrew alongside Xcode's git. However it's unlikely any of this is necessary with newer versions of macOS if you've restarted the terminal after installing git with homebrew. IMPORTANT EDIT - Any solution I wrote in this comment should be ignored unless you've already done the following: restarted your terminal after running brew install git (important!), ensured which git is returning /usr/local/bin/git and that this is what brew installed, confirmed /usr/local/bin/git -version is displaying the new version installed via brew, and if git -version is still returning the old Xcode version even after restarting your terminal then you can either use simple workarounds to add the path to the proper git install as others and myself mentioned (shown below this edit) or you can use people's solutions above to remove Xcode' git. How do I know if I am using the right git on my system? I checked which git and it shows "/usr/local/bin/git".

UPDATE GIT ON MAC MAC

I checked my git version and it was 2.23.0, I did brew install git which should have updated to 2.28.0 I believe however when I restarted my mac and checked git version I still see 2.23.0.







Update git on mac