1and1 Help Centre Categories

print article

Create a New Branch for Git Repository

For Linux packages with SSH access.

To create a new branch, enter the following command:

git branch my-branch

Use this command to create a copy of the branches, which will be shown instantaneously.

To check out the branch, enter the following command:

git checkout my-branch

To check out a non-existing branch, enter the following command:

git checkout-b my-branch
For additional information, you may want to reference: