Skip to main content
Keep your dbt™ project repository organized by removing branches you no longer need. Paradime can prune every merged branch in one click, or you can delete a specific branch.
PrerequisitesEstimated time: 5 minutes.

Steps

1

Prune merged branches in one click

Pruning finds the local branches whose remote branch no longer exists, usually because their pull request merged and the branch was deleted. It lists them before it deletes anything.
  1. In the Git Lite panel, click ⋯ (More Git actions) next to the refresh icon.
  2. Click Prune merged branches. Git Lite fetches from the remote and finds the branches to prune.
  3. Review the list in the These branches will be pruned dialog.
  4. Click Sure, continue! to delete them.
If nothing needs pruning, the dialog says There are no branches to prune. Git Lite never prunes the branch you’re on. If its remote branch is gone too, the dialog asks you to switch to another branch first.
Pruning deletes branches only from your copy of the repository in the Code IDE, not from your Git provider. It deletes them even if they hold commits that you never pushed.
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:
  1. Open the Git Advanced panel in the left sidebar.
  2. Click the three-dot menu (⋯) at the top left of the sidebar.
  3. Select Delete Branches from the dropdown.
  4. Choose the branch you want to delete from the list.
  5. Confirm the deletion.
A branch can only be deleted from the UI once it has been pushed and merged with the remote branch. To force-delete an unmerged branch, use the terminal command git branch -D <branch_name>.
You will know it worked when the pruned or deleted branches no longer appear in the branch list. If a branch remains after pruning, it still exists on the remote, or it was never pushed. Delete it on your Git provider, or delete your local copy 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.