Home > Development Tools > git > How to create a new branch on Gitee

How to create a new branch on Gitee

PHPz
Release: 2023-04-06 11:24:09
Original
4578 people have browsed it

Gitee is a very popular open source code hosting platform that provides many features to help you manage your code base. On Gitee, you can create and manage different branches to test and develop new features without affecting the main code. In this article, we will explain how to create a new branch on Gitee.

Step one: Log in to your Gitee account

First, you need to log in to your Gitee account. If you don't have an account yet, you need to register one first.

Step 2: Open your code base

After logging in, you need to find the code base where you want to create a branch. On the Gitee homepage, click "My Projects", find the code base where you want to create a branch, and click to enter.

Step 3: Visit the branch management page

On your code base page, you can see a menu bar, click "Branch" to enter the branch management page.

Step 4: Create a new branch

On the branch management page, you can see your main branch. In the center of the page, there is a text box that allows you to name the new branch. After entering the name, click the "Create" button to create a new branch.

Step 5: Switch to the new branch

To operate on the newly created branch, you need to switch to this branch first. On the branch management page, click the new branch to enter the branch details page, and click the "Switch Branch" operation to switch to the new branch.

Step 6: Perform operations on the new branch

Now that you are on the new branch, you can modify, add, and delete some code. After you finish developing on a branch, you can merge the code into the master branch or keep it as a new branch.

Summary

Creating a new branch on Gitee is a relatively simple operation and only requires a few steps to complete. By creating branches, you can easily test and develop your code base. I hope this article will be helpful to you and let you use Gitee better.

The above is the detailed content of How to create a new branch on Gitee. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template