reinstall_git_brew.md
commented Mar 31, 2018
May 05, 2015 I’m running OS X Snow Leopard 10.7.5 $ which git /usr/bin/git $ git –version. Git version 1.7.4.4. It looks like git is installed and as it should be since I’ve used it for the last year. According to scenario 1, I need to uninstall git and run the script uninstall.sh. So I did $ sh uninstall.sh.
sudo rm -rf /usr/bin/git wont work for El Capitan due to SIP restriction simple solution is create alias alias git='/usr/local/bin/git' |
![Current Version Of Git For Mac Os X Current Version Of Git For Mac Os X](/uploads/1/2/6/0/126096778/290997373.png)
commented Jun 1, 2018
If you would like to follow the above instructions on a system with SIP enabled: https://apple.stackexchange.com/questions/248220/how-to-remove-default-git-or-update-it |
commented Dec 29, 2018 • edited
edited
consider that for change in bin folder (which is read-only) you must disable SIP System Intergradation Protection in your mac: 1- reboot your mac 2- press and hold ⌘ R until seeing the apple's logo 3- from recovery menu utils>Terminal csrutil disable reboot now you can remove bin's stuff note that: after this change re-enables it using this command: csrutil enable |
commented Mar 14, 2019
Current Version Of Git For Mac Os X 10 11 Download Free
brew does this anyways :) |
commented Jul 3, 2019
that's great. working for me. thanks ;) |
commented Jul 25, 2019
Hello, I follow the instructions and then I am being requested to enter a password. I do enter the password, but I get an error message: Thanks for your help. Josep Maria |
commented Sep 9, 2019
I have gone through the steps you listed in this instruction set, however once I run the 'sudo rm -rf /usr/bin/git/' I get the error rm: /usr/bin/git: Operation not permitted I am currently running MacOS Mojave v.10.14.6. and I have Xcode installed (if that means anything). Please advise. -Pete8451 |
commented Mar 21, 2020
Did you found out a solution for your problem?? I got the same error 'Operation not permitted' and I've been struggling for days with this problem |
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Git SCM does not comes out-of-the-box(OOTB) with Mac OS X. However if you have installedXcode command line tools or standalone Git Installer then you will have Git SCM on Mac OS X.
Warm Up!
Let’s check existing Git version on your machine.