Prerequisites
- A workspace with a connected git repository.
- A project open in the Code IDE.
- Either Git Lite or Git Advanced enabled.
Steps
1
Prune merged branches in one click
One-click branch pruning automatically identifies and removes local branches that have been merged and deleted on remote. It only removes branches that were properly merged, and it shows you exactly which branches will be deleted before removing them.
- Git Lite
- Git Advanced
- Open the Git Lite panel in the left sidebar.
- Click the scissor icon to access branch pruning.
- Review the branches that will be removed.
- Confirm the cleanup to remove all identified branches.
2
Delete a specific branch (Git Advanced)
For Git Advanced users who need to delete a specific branch individually, including one that has not been merged yet:
- Open the Git Advanced panel in the left sidebar.
- Click the three-dot menu (⋯) at the top left of the sidebar.
- Select Delete Branches from the dropdown.
- Choose the branch you want to delete from the list.
- Confirm the deletion.
You will know it worked when the pruned or deleted branches no longer appear in the branch list. If a branch remains, it was not merged to remote, so delete it manually with
git branch -D <branch_name> in the terminal.Next steps
Resolve merge conflicts
Handle conflicts when Git can’t merge two branches automatically.
Use Git Advanced
Take full control of staging and branch management.
Version control reference
Every Git feature in the Code IDE.