Start Here
Installing Git
This workshop will generally assume that you are using a Linux terminal, but everything should work under Windows as well if you substitute appropriate shell commands.
Ubuntu
If Git is not already installed, use the following command to install it:
sudo apt update && sudo apt install git
If you want the latest and greatest Git features you can also install Git from a PPA.
Windows
Git for Windows
Download and run the installer from the Git for Windows website.
Chocolatey
Chocolatey is a package manager for Windows based on the NuGet package format.
First follow the instructions found here to install Chocolatey for individual use. Then run the following command in an administrator command prompt:
choco install -y git
Configuring Git
Before using Git, you need to configure at least your name and email address.
# Configure your name and email address
git config --global user.name "John Doe"
git config --global user.email john.doe@gmail.com
I recommend setting the following options as well:
# Disable Git's automatic line ending conversion (LF on Linux, CRLF on Windows)
# I prefer to use .gitattributes to control line endings instead
git config --global core.autocrlf false
# Prefer a rebase instead of a merge commit when pulling a branch
git config --global pull.rebase true
Now you should be ready to start with Module 1!