Skip to content

How to Switch and Create Branches

Allen edited this page Jan 25, 2025 · 1 revision

Note: Switch and make new branches in GitHub Desktop, not WPILib!

How to Switch/Make New Branches in GitHub Desktop

To see your current branch and switch or create a new branch, click the button on the top that says "Current branch" and sits between the "Fetch origin" button and "Current repository" button.

image

Once you click on it the following menu will drop down.

image

The branch with the checkmark next to it is the branch you are currently on. To switch to another branch, you just click on it and to make a new branch, you click the "New branch" button.

How to Switch/Make New Branches in WPILib

Note: DON'T DO THIS! It can cause problems, and it is better to do it in GitHub Desktop.

You can't edit multiple branches at the same time. Make sure not to make unnecessary ones, and don't edit the wrong branch!

In order to switch or create branches, use the button in the bottom left of WPILib.

image

Click on that button and you will see the following menu:

image

Click create new branch to make a new branch, or select a branch to switch to that branch.

Clone this wiki locally