...
- Download git - if not installed:
- There is an issue where your git installation may be overridden by the MacOS (Xcode) veneer. To overcome this:
- Don't bother trying to mv /usr/bin/git /usr/bin/git/system - as the Mac security does not permit this (even as root)
- Just confirm your git installation is working and alias it:
See below:
Code Block language bash title overriding MacOS git veneer collapse true # git command line fails after install - even if found on $PATH ok 10:22:00 3 $ which git /usr/local/bin/git 10:22:37 4 $ git xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools. # installation fine though 10:22:40 5 $ /usr/local/bin/git usage: git [--version] [--help] [-C <path>] [-c name=value] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] ... # sudo mv MacOS git not permitted - even logged in as root! sudo mv /usr/bin/git /usr/bin/git-system Password: mv: rename /usr/bin/git to /usr/bin/git-system: Operation not permitted # fix is to alias - add to ~/.bash_profile alias git=/usr/local/bin/aliasgit 10:34:30 23 $ git usage: git [--version] [--help] [-C <path>] [-c name=value] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] ...
- There is an issue where your git installation may be overridden by the MacOS (Xcode) veneer. To overcome this:
...