-
Notifications
You must be signed in to change notification settings - Fork 2
Tooling Setup
This document is based off of the 971 Github Setup document
It's highly suggested that you install Windows Subsystem for Linux (WSL) and use that as your terminal. It will make your life easier. If you are not sure whether you have WSL, run wsl in the command prompt or type wsl in the search bar.
If you don't have one, create one.
We'll use GitHub's official CLI tool to set up SSH access automatically.
For Debian/Ubuntu or WSL, run:
sudo apt install gh
For MacOS, run:
brew install gh
To confirm it's installed correctly, run:
gh --version
Run this command to sign in to GitHub and set up SSH:
gh auth login
- When asked to choose a GitHub host, choose GitHub.com
- For protocol, choose SSH
- Don't use a passphrase
- Authenticate using "Login with a web browser"
- Continue following the instructions. It will generate and register your SSH key with GitHub automatically.
You can confirm that everything worked by running:
gh auth status
This should say you're logged in with SSH.
Test the SSH connection to GitHub:
ssh -T git@github.com
You should see a success message with your username. If not, follow the troubleshooting steps at: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection
If you'd like to sign your commits using SSH, run:
git config --global gpg.format ssh
git config --global user.signingkey ~/.ssh/id_ed25519.pub
Follow the instructions here: https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/wpilib-setup.html
- Select "Install for this User"
- Install "Everything"
- Choose "Download for this computer only"
If you completed the software training sign up form on time, you should have already been added to the "Spartan Robotics" GitHub organization and be able to access the training-2025 repo.
If not, ask a training lead (e.g. on Slack) to be added to the organization. Provide them with your GitHub username.
It’s recommended to save source code to your Windows home directory (C:\Users\<username> or /mnt/c/Users/<username> in WSL) so that apps like VSCode, notepad, etc. can access it easily.
Then do a soft link from the WSL home directory to it so you can access it easily from the terminal.
cd /mnt/c/Users; cd $USER
If that doesn't work, type:
ls -1d /mnt/c/Users/*
to see what home directories are available and cd into it.
Once you are sure that you are in the location where you want to source, do:
ln -sf $PWD/training-2025 ~/training-2025
git clone git@github.com:frc971/training-2025.git
If you don't have git, download it here.
- Go to File -> Open Folder
- Navigate to the directory where you did
git clone - Go inside
training-2025and click Open