# Deploying the Correct Code

It's important to make sure the correct code is deployed to the robot before demos to ensure there are no unwanted bugs (secret features) that could jeopardize the quality of the demo. This page will guide you through selecting and deploying the correct branch.

The team keeps the working and tested code on the *main* branch, so you first need to navigate to this branch. Do this by opening the terminal by hitting this icon:

[![Screenshot 2025-06-12 at 12.43.07 PM.png](https://wiki.yetirobotics.org/uploads/images/gallery/2025-06/scaled-1680-/screenshot-2025-06-12-at-12-43-07-pm.png)](https://wiki.yetirobotics.org/uploads/images/gallery/2025-06/screenshot-2025-06-12-at-12-43-07-pm.png)

Then, type in *git checkout main* to navigate to the *main* branch:

[![image.png](https://wiki.yetirobotics.org/uploads/images/gallery/2025-06/scaled-1680-/0BJimage.png)](https://wiki.yetirobotics.org/uploads/images/gallery/2025-06/0BJimage.png)

Next, type in *git pull* to update the branch with any changes that may have been made:

[![image.png](https://wiki.yetirobotics.org/uploads/images/gallery/2025-06/scaled-1680-/Tyfimage.png)](https://wiki.yetirobotics.org/uploads/images/gallery/2025-06/Tyfimage.png)

Next, make sure you're connected to the robot's WiFi. It should show up as 3506\_\[robot name\] or something similar. Once this is done, hit the Gradle tab here:

[![Screenshot 2025-06-12 at 12.51.06 PM.png](https://wiki.yetirobotics.org/uploads/images/gallery/2025-06/scaled-1680-/screenshot-2025-06-12-at-12-51-06-pm.png)](https://wiki.yetirobotics.org/uploads/images/gallery/2025-06/screenshot-2025-06-12-at-12-51-06-pm.png)

Then navigate to *deployUtils* &gt; *deploy* and double click *deploy:*

[![image.png](https://wiki.yetirobotics.org/uploads/images/gallery/2025-06/scaled-1680-/L8himage.png)](https://wiki.yetirobotics.org/uploads/images/gallery/2025-06/L8himage.png)

Great! Your code is now being deployed to the robot. Wait a couple of seconds, and you should be good to go!