Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fdc9c8d143
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 43 lines (27 sloc) 1.036 kb

git-branch-delete-orphans

git-branch-delete-orphans list all local-tracking branches which remote does not exist anymore and prompts you to delete them.

Install

gem install git-branch-delete-orphans

Usage

git-branch-delete-orphans

Sample output

Listing remote branches...
From git@git.versapay.com:eft3

The following branches track a remote branch which does not exist anymore:
 - inbound_outbound_balances
 - 6956-refactor-login-for-checkout
 - 6141-set-timezone-to-PST
 - 7344-move-non-ar-models-to-services
 - 2676-refactor-emails
 - 7461-update-Gemfile

inbound_outbound_balances tracks a remote branch which does not exist anymore. Do you want to [d]elete it, [D]elete all, [k]eep it or [K]eep all?
d
Deleted branch inbound_outbound_balances (was 694bb37).

6956-refactor-login-for-checkout tracks a remote branch which does not exist anymore. Do you want to [d]elete it, [D]elete all, [k]eep it or [K]eep all?

License

MIT

Copyright

Copyright (c) 2011 VersaPay, Philippe Creux.

Something went wrong with that request. Please try again.