Git is an undo button for your entire codebase. Every professional programmer uses it. The day someone accidentally overwrites your autonomous code the morning of a competition, you will understand exactly why.
Open the VS Code terminal (Ctrl+`) inside your PROS project folder:
Create a new repository on github.com (click the + button, name it something like team2822-2025), then connect and push:
Your code is now on GitHub. Any team member can clone it to their laptop.
PROS projects generate compiled binary files that should not be tracked. Create a file named .gitignore in your project root:
git tag qualifier-1. Now you can always return to exactly what you ran at that event.git checkout . discards all changes and returns you to the last commit.Keep it simple: two branch types are enough for most VRC teams.
main — the competition-ready code. Only merge into main when something is tested and working. This is what gets uploaded the morning of a competition.new-auton-right, arm-pid-tuning, cheesy-drive-test.git checkout -b qualifier-2-feb15git tag -a q2 -m "Qualifier 2 competition code"git push --tags| Situation | Command |
|---|---|
| Save progress after practice | git add . && git commit -m "..." && git push |
| Undo all unsaved changes | git checkout . |
| Try something risky | git checkout -b experiment-name |
| Get teammate's latest changes | git pull |
| See commit history | git log --oneline |
| Mark competition code | git tag qualifier-1 && git push --tags |
git revert to create new commits that undo the 3 changes, or git reset to move the branch pointer back to the last working commit