If you find any mistakes or have questions, let one of the Firmware leads know on Discord.
What is Git?
Git is a version control system (aka source control) that you’ll almost certainly use at some/all of your co-ops if you’re a software developer. Some of the main advantages are outlined below.
- Git allows developers to view the history of a file. This allows you to track all changes made to a file, as well as who made those changes.
- Git makes it easier for multiple developers to collaborate.
Git Installation & Setup
Installation
Ubuntu 20.04
- Git is likely already installed. Run
git --version
to verify.
- If not installed, run
sudo apt-get update && sudo apt-get install git
Windows
- Go to https://git-scm.com/download/win
- Download the latest version of Git
MacOS
- On MacOS v10.9 (Mavericks) and above, try running
git --version
- If it’s not installed already, it should prompt you to install
- If that doesn’t work, go to https://git-scm.com/download/mac
Setup
- Open up a terminal to run Git commands
- On Windows, I prefer Git Bash
- Set your identity by running the following commands (Replace with your details):