Create new branch as a developer in gitlab website

Here are the steps to create a new branch as a developer in GitLab:

Prerequisites:

Step-by-Step Instructions:

  1. Go to your project's repository on GitLab by clicking on the project name in the top navigation bar.
  2. Click on the "Code" tab in the top navigation bar.
  3. Click on the "New branch" button located in the top-right corner of the page.
  4. In the "Create a new branch" dialog box, enter a name for your new branch. This should be a descriptive name that indicates the purpose of the branch (e.g., "feature/new-login-system").
  5. Choose a base branch from the dropdown menu. This is the branch that your new branch will be based on (e.g., "master").
  6. Click the "Create branch" button to create the new branch.

Alternative Method:

You can also create a new branch using the command line. To do this:

  1. Open a terminal or command prompt.
  2. Navigate to your project's repository using the command cd /path/to/your/project.
  3. Use the command git branch <branch-name> to create a new branch. Replace <branch-name> with the name you want to give your new branch (e.g., "feature/new-login-system").
  4. Use the command git checkout <branch-name> to switch to your new branch.

Tips: