Home > Article > Development Tools > How to create a new code repository in gitee
Gitee is China's leading code cloud platform, providing developers with comprehensive services such as code hosting, project collaboration, social networking, and internal enterprise deployment. It is currently the preferred domestic code cloud platform. On Gitee, we can quickly create our own code repository and perform code management, version control and team collaboration. Below, we will introduce step by step how to create a new code repository on Gitee.
Step one: Log in to your Gitee account
First, we need to log in to our Gitee account. If you don’t have an account, you need to register first. After successful login, we can see the "New Warehouse" button on the homepage, as shown in the figure below:
Step 2: Create a new code warehouse
After clicking the "New Warehouse" button, You will enter the new warehouse page, as shown in the figure below:
In this page, we first need to fill in the basic information of the warehouse, including the name, description, organization/individual affiliation, visibility, etc. of the warehouse. Among them, the name of the warehouse is required. This name will be used as the main identifier of the code library and can be named freely.
The following is a detailed explanation of each information:
Warehouse name: The name of the warehouse, used to identify the warehouse, required.
Description: A description of the warehouse, which can briefly describe the functions or features of the warehouse.
Official organization/individual: The organization or individual to which the warehouse belongs. If there is no organization, you can select an individual.
Visibility: The visibility of the warehouse, you can choose public or private. If you choose a private repository, only the owner and collaborators of the repository can view and modify the code, and no one else can access it.
Initialize README file: Whether to initialize the README file. If checked, a README.md file will be automatically created in the warehouse.
Enable Git LFS: Whether Git LFS is supported. If supported, you can upload large files.
Step Three: Configure Warehouse Permissions
After completing the above basic information, we need to configure the warehouse permissions. You can set warehouse access permissions, collaborators, branch protection rules, etc. here.
Among them, the access permissions of the warehouse can be set to public or private, and collaborators refer to members who can access and modify the warehouse. When configuring collaborators, you can directly enter the user name or email address of the member and select the corresponding permissions. Usually, we can set the project's development team as collaborators to facilitate project collaboration and management.
In addition, you can also set branch protection rules to prevent important development branches from being illegally modified or deleted. When setting up branch protection rules, you can choose which branches to protect and the type of protection rule.
Step 4: Complete the new warehouse
After we fill in the basic information of the warehouse and configure the warehouse permissions, we can click the "Complete New Warehouse" button to create a new code warehouse. At this point, you will jump to the code management page of the warehouse, where we can upload code, create branches, merge branches, and manage projects. As shown in the figure below:
To sum up, through four simple steps, we can easily and quickly create a new code warehouse on Gitee and conduct code management and team collaboration. Of course, when using Gitee, we also need to master more code management skills and team collaboration skills for better project development and management.
The above is the detailed content of How to create a new code repository in gitee. For more information, please follow other related articles on the PHP Chinese website!