Skip to content

Commit

Permalink
script/cleanup: run this script to clean up orphan branches and tags …
Browse files Browse the repository at this point in the history
…in your working copy.
  • Loading branch information
Timothy Place committed Aug 30, 2015
1 parent 9ebfa16 commit 693588b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions script/cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

# Clean-up detritus from Git and resync with the master repository.

# 1. Branches
git remote prune origin

# 2. Tags
git tag -l | xargs git tag -d && git fetch -t

0 comments on commit 693588b

Please sign in to comment.