Version Control System (VSC)

How to install Git on macOS

Git is a version control system that allows developers to track a project and actively contribute without interfering in each other’s work. It supports collaboration within a project and helps prevent miscommunication or code clashing between team members.

– For how to use AWS CodeCommit, see https://techdirectarchive.com/2018/07/13/using-aws-codecommit-vsc/
– For how to clone a repository and install software from GitHub on Windows, see https://techdirectarchive.com/2020/05/23/how-to-clone-a-repository-and-install-software-from-github-using-the-terminal-for-windows-and-linux/

Step 1: Install the Package
Double click the package in this disk image to install. This installs git to /usr/local/git, and places symlinks into /usr/local/bin and /usr/share/man/.

Step 2: Remove stubs (Yosemite and earlier)
When you run `git`, you might see this message: ‘The “git” command requires the command line developer tools. Would you like to install the tools now?”
– This is because OS X ships with stubs, and these stubs are taking precedence over /usr/local/bin.

To resolve, run the following command:

sudo mv /usr/bin/git /usr/bin/git-system

This should not be a problem in OS X 10.11 (El Capitan), as /usr/local/bin takes precedence over /usr/bin

https://github.com/timcharper/git_osx_installer/

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x