Navigating branches
To view and switch between the different branches available in a GitHub repository, follow these steps:
Navigate to the repository on GitHub. In this case, Git-academy-sandbox.
Click on the ‘Branches’ button below the title of the repository as below:
- A list of all of the branches in the repository which have been synced to the remote will be shown. You can select any branch to view its contents. You can search branches using the search box or just see your own, active or stale branches by moving through the tabs.
Default Branch
The default branch is like the main version of your project. It’s usually called main, but sometimes it might have a different name. This is the branch where the latest, most stable version of your project lives. When you want to make changes to code, you usually create your own branch from main.