SourceTree – Delete Multiple Branches at One Time

Do you use SourceTree to help manage your Git repos? Ever work on a bunch of pull requests and have a lot of local branches you need to delete? I found a way to delete multiple branches at one time.

  1. Click Repository then click Branch.
    2015-12-08_16-24-19
  2. Click Delete Branches.
    2015-12-08_16-23-22
  3. Select the branch(es) you want to delete. Be sure not to select other than Local branches unless that’s your intention.

 

 

3 thoughts on “SourceTree – Delete Multiple Branches at One Time

  1. If you ever need a similar action in a command line environment, here’s what I use:

    `git branch –merged | grep -v “\*” | xargs -n 1 git branch -d`

    It removes local branches that have been deleted in the remote repository.

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s