The first step to working with code on your personal computer is to install git for your operating system. Git is a command-line utility that is available for every major operating system. The steps vary greatly by operating system, so look for the instructions best fit for your machine.
-
Download the git installer from the git website.
-
All of the default settings are acceptable for installing git.
-
Note, this is the recommended method of installing git on MacOS. It is not the only method. If Xcode is installed on your mac with developer command line tools, you may already have git.
-
First, install 'homebrew', this is a package similar to 'apt' for Debian Linux. It makes installing trusted software packages much easier. Install it by executing the following command in the terminal:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew doctor
-
Then, install git by running 'brew install git'
-
This method will work for most Debian distributions of Linux.
-
Run the following commands in the linux terminal:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git