Installing GIT¶
Linux git installation¶
git should be available in the terminal for your distribution. You can test this by issuing git --version:
$ git --version
git version 2.15.0
If it is not available already, then you should try installing git from your distribution’s package manager,
for example with sudo apt-get install git or sudo apt install git (Debian/Ubuntu) or sudo dnf install git (Fedora).
macOS git installation¶
git should be available in the terminal. You can test this by issuing git --version:
$ git --version
git version 2.15.0
If it is not available, then you should install the most recent version of the mavericks installer
from the Git Mavericks list
Windows git installation¶
If not installed already, we recommend the use of the Git Bash shell throughout the course,
for Windows users. This provides a consistent environment equivalent to the powerful Linux
and macOS Bash shells.
- Download the Git for Windows installer.
- Run the installer and follow the steps bellow:
- Click on
Next. - Click on
Next. - Change the editor from default vim to use nano instead.
- Keep ``Use Git from the Windows Command Prompt`` selected and click on ``Next``. If you forgot to do this programs that you need for the workshop will not work properly. If this happens rerun the installer and select the appropriate option.
- Click on
Next. - Click on
Next. - Keep ``Checkout Windows-style, commit Unix-style line endings`` selected and click on ``Next``.
- Keep ``Use Windows’ default console window`` selected and click on ``Next``.
- Click on
Install. - Click on
Finish.
- Click on
- If your
HOMEenvironment variable is not set (or you don’t know what this is): - Open command prompt (Open
Start Menuthen typecmdand press the[Enter]key) - Type the following line into the command prompt window exactly as shown:
setx HOME "%USERPROFILE%" - Press
[Enter], you should seeSUCCESS: Specified value was saved. - Quit command prompt by typing
exitthen pressing[Enter]
- Open command prompt (Open
- If your
This will provide you with both git and bash in the Git Bash program, which you can start
from the Start Menu on your Windows machine.
git should be available in the Git Bash terminal. You can test this by issuing git --version:
$ git --version
git version 2.16....