Create new brnch as a developer in gitlab website
Here are the steps to create a new branch as a developer in GitLab:
Prerequisites:
- You have a GitLab account and are logged in.
- You have a project created in GitLab.
- You have the necessary permissions to create a new branch (usually, this is the case for developers).
Step 1: Navigate to your project
- Go to your GitLab project by clicking on the project name in the top navigation bar.
- Alternatively, you can use the project URL to access your project directly.
Step 2: Click on the "New branch" button
- In the top navigation bar, click on the "New branch" button.
- Alternatively, you can also click on the "Code" tab and then click on the "New branch" button.
Step 3: Enter the branch name
- In the "Create a new branch" dialog box, enter a name for your new branch.
- Make sure to follow the branch naming convention for your project (e.g., feature/new-login-system, fix/bug-in-login-page, etc.).
Step 4: Choose the base branch
- Select the base branch from the dropdown list. This is the branch that your new branch will be created from.
- Typically, you would choose the "master" branch as the base branch.
Step 5: Click on the "Create branch" button
- Click on the "Create branch" button to create the new branch.
Step 6: Verify the new branch
- Once the branch is created, you should see a confirmation message indicating that the branch has been created successfully.
- You can also verify the new branch by checking the branch list in the "Code" tab or by running the command
git branch
in your local repository.
That's it! You have successfully created a new branch as a developer in GitLab.