Deleting Branches

If you no longer need a branch, you can delete it. This also deletes any commits on that branch. The Branch Management dialog lets you delete either local or remote branches, or both.

You can delete any branch except the current branch. If you need to delete the current branch, you will have to switch to a different branch first. See Switching Branches.

How to Delete Branches—Branch Management Dialog

The benefit of using the Branch Management dialog is that you can choose either local or remote branches to remove.

  1. Make sure the branch you want to delete is not the active branch. See Switching Branches.

  2. Open the Branch Management dialog in one of the following ways:

    • Status Bar In the lower-right of Lingo, click the name of the active branch.

      Note If you do not see this option, make sure View > Status Bar is enabled.

    • Ribbon Select Source Control > Branch (the face of the button, not the drop-down).

    • Right-Click If you have the File List open, right-click on any file and select Source Control > Project > Branch.
  3. Select the Locals or the Remotes tab, depending on which branch you want to delete. If you want to delete a branch both locally and remotely, select either tab.

  4. Select the branch you want to remove and click Delete.

  5. If you selected a local branch, you are asked if you also want to delete the remote branch (if one exists). Click the check box if you do; otherwise, leave it disabled.

    If you selected a remote branch, you are asked if you also want to delete the local branch (if one exists). Click the check box if you do; otherwise, leave it disabled.

  6. Click OK.

  7. Close the Branch Management dialog.

How to Delete Branches—Source Control Explorer

  1. Select View > Source Control Explorer. The Source Control Explorer opens.
  2. From the drop-down or the Home pane, select Branches. The Branches view opens. In the pane, you can see your current branch, as well as lists of your published and unpublished branches.
  3. Select the branch you want to delete. You can delete any branch except the current branch.
  4. Click Delete Branch.

  5. A dialog asks if you want to proceed. By clicking the check box in the dialog, you can also delete the remote branch (if one exists).

    Click OK. The branch is removed from the list.