# Branch and Tag Management
# Branches
The built-in code repository supports branch management.
Go to My Application > Select Application > Branch. The repository takes the first branch pushed as default branch by default, which is the target branch for creating a merge request. Click ... to modify.
# Delete Branch
Click Delete to delete branches and the default branch cannot be deleted.
# Branch Comparison
Click Compare to compare the differences between two branches, based on source or target branch. View the commit history of the branch on the current page.
Or view the differences of changed files.
# Branch Rule for Project
The platform manages branches and environments strictly, with four built-in deployment environments: DEV, TEST, STAGING and PROD. It provides built-in configurations of best practices and also supports customization. For more information on branch management, see Gitflow.
You can set deployment environments for pipeline and artifact here.
Go to DevOps Platform > Projects > Settings > Files > Branch Rule to set environments.
# Branch Rule for Application
The branch rules for application are set for branch protection and continuous integration. Please set as needed.
Continuous integration: Triggered by code change.
Branch protection: Once enabled, only the application owner and leader can operate, and other members need to submit codes by MR.
Go to My Application > Select Application > Setting > Repository > Branch Rule to add rules.
# Tags
The built-in code repository supports tag management, and the source code package can be downloaded on the tag page.
Go to My Application > Select Application > Branch > Tags.
Click Add Label in the upper right corner and select source type of Branch or commit SHA.
← Code Hosting Java →