Create a Branch
You can’t create a branch in an empty Git repository. First, you have to
clone the repository to your computer, add and commit files to the default
main
branch that’s automatically created, and then push the branch to
the project's Git repository. Only after the main
branch has been pushed to
the repository, can you create additional branches.
A branch can be marked as a private branch. Only branch owners can push commits to a private branch. You must be a project member to be able to create a branch.
You can create a branch from the VB Studio Designer as well. We'll describe that here too.
From the Git page's Refs view , you can create a branch from the base branch, from the head (tip) of an existing branch, or from a tag:
Action | How To |
---|---|
Create a branch from a base branch |
|
Create a branch from the head (tip) of another branch |
|
Create a branch from a tag |
|