Skip to Content
Native GitGit Branch and Tags

Git Branch and Tag Management

When accessing an API repository, you’ll initially be directed to the default branch, which is typically the main branch.

Branch dropdown open on the Branches tab, listing main as the default branch

Branch and Tag Operations

Use the branch dropdown menu in the upper left corner to manage branches and tags. The menu has a Branches tab and a Tags tab:

  • Switch between branches/tags: Click a name to navigate to that version of your repository
  • Create new branch/tag: Click Branch or Tag, choose the Source, and enter the name of the new branch or tag
  • Delete branch/tag: Hover over a row and click the delete icon, then confirm. The default branch cannot be deleted
  • Set default branch: Hover over a branch and click the star icon (Set as default branch)

Creating and deleting branches and tags, and setting the default branch, need write permission on the repository.

You can also set the default branch under Settings → Branches → Default Branch. To restrict who can change a branch or a tag, see Branch Protection and Tag Protection.

Local Git Integration

Since APIGit repositories can be cloned to your local machine, you can also:

  1. Create branches locally using standard Git commands
  2. Push these branches back to APIGit
  3. Manage your branches through both the web interface and local Git operations

This flexibility allows you to use your preferred workflow while maintaining full compatibility with APIGit’s web-based tools.

Last updated on