Skip to content

Git & GitHub Guide

This guide explains what Git is, how to use GitHub, and how to contribute to our team’s code and documentation.


Git is a tool that tracks changes in files over time. It lets multiple people work on the same code without overwriting each other.

Think of Git like Google Docs “version history” but for robot code, CAD, and docs.


GitHub is a website where we store our Git repositories (repos) online. It makes it easy for our team to share code, track issues, and collaborate.

Our team’s main GitHub organization is: 👉 https://github.com/BC-Robotics-4504 (BC Robotics)


  • Windows: download Git for Windows
  • Mac: use Homebrew → brew install git
  • Linux: use your package manager (Ubuntu → sudo apt install git)

Check it works:

Terminal window
git --version

Tell Git who you are (this shows up in commit history):

Terminal window
git config --global user.name "Your Name"
git config --global user.email "you@example.com"

  • Go to github.com
  • Create an account with your school or personal email
  • Ask a mentor to add you to Team 4504’s GitHub org

Cloning means copying a repo from GitHub onto your computer.

Example for our robot code repo:

Terminal window
git clone https://github.com/Team4504/robot-code.git
cd robot-code

Branches are “copies” where you can safely make changes.

Terminal window
git checkout -b my-first-change

Open files in your editor (we recommend VS Code). Change code, docs, or CAD files.


Stage and commit your edits:

Terminal window
git add .
git commit -m "my first commit: fixed drivetrain constants"

Send your changes up to GitHub:

Terminal window
git push -u origin my-first-change

  • Go to the repo on GitHub
  • You’ll see “Compare & Pull Request”
  • Describe what you changed
  • Ask for a review → mentors or leads will merge it

Terminal window
# check what files changed
git status
# see commit history
git log --oneline
# switch to another branch
git checkout main
# get the newest updates from GitHub
git pull origin main

This video from Fireship does a good job of explaining the basic git concepts: