In Git, branches are timelines that allow you to work on new features or fixes, while tags are used to mark project versions or milestones.
In this overview, we’ll go over:
- Branches
- Tags
- Comparing branches and tags
Branches
In the “Branches” tab on the repository details page, you can:
- Search branches using the magnifying glass icon.
- Compare branches and tags by selecting the “Compare” button.
- Add pull requests by selecting the “Add” button.
- Permanently delete a feature branch by selecting the “x” in the “Delete” column.
Tags
In the “Tags” tab on the repository details page, you can:
- Search tags using the magnifying glass icon.
- Compare branches and tags by selecting the “Compare” button.
Comparing branches and tags
Selecting the “Compare” button in the “Branches” or “Tags” tab opens a comparison page where you can:
- Select branches or tags to compare from the dropdown menus.
- See differences in commits between the selected branches or tags.
- See differences in files between the selected branches or tags.