Return to Snippet

Revision: 56020
at March 7, 2012 02:53 by beneberle


Initial Code
# see what's out there
git remote show origin

# remove the remote branch 'branch-name'
git push origin :branch-name

# see what branches are only on local and no longer tracked
git remote prune origin --dry-run

# run again without --dry-run to actually prune the local branch

Initial URL
http://kparal.wordpress.com/2011/04/15/git-tip-of-the-day-pruning-stale-remote-tracking-branches/

Initial Description
http://yuji.wordpress.com/2010/06/11/git-delete-remote-branch/

Initial Title
Git prune remote and local branches

Initial Tags
git

Initial Language
Bash