Pybricks Sync
Back up your team's Pybricks programs to GitHub, and load them back into Pybricks.
Team
Saved in this browser only. Programs go to .
Open the link once on each team computer to pick this team and save the token there.
Upload: Pybricks → GitHub
- In Pybricks Code, click the Export all button (the box with a down arrow, above the file list). It saves a ZIP, which your browser may unzip into a folder.
- Drop the ZIP, the folder, or the
.pyfiles here. Or choose them (select all with Ctrl+A, or ⌘+A on a Mac). - Click Upload. Your changed programs go to a new branch on GitHub. Programs already on GitHub that you didn't pick are kept.
- Click Open a pull request in the log and merge it. Download only gets your upload after it is merged into
main.
Drop the Pybricks ZIP, folder or .py files here
Tips for a good message
- Name the program or mission: "m6_leafcutter", "menu", "drive base setup".
- Say what you changed: "drive 500 mm instead of 450", "added a gyro turn".
- Say why: "…because it overshot the target", "…so it works on the practice table".
- Write it for your teammate next week, or for you on tournament day, looking for when something broke.
- Changed several things? List them: "menu: added m6; m7: slower turns".
- Not good enough: "update", "fixed it", "stuff", "asdf".
Download: GitHub → Pybricks
- Click Download. It saves a ZIP of all your team's programs.
- In Pybricks Code, click the Import button (the up arrow, above the file list) and pick that ZIP.
Clear Pybricks
Deletes every program saved in Pybricks Code on this computer. Upload first.
- One time only: drag this button to your bookmarks bar → Clear Pybricks (show the bar with Ctrl+Shift+B, or ⌘+Shift+B on a Mac).
- Open code.pybricks.com in a Chrome tab.
- Click the Clear Pybricks bookmark in that tab and confirm.
- If you use the Pybricks app, close it and open it again.