Skip to content

Instantly share code, notes, and snippets.

View npazo's full-sized avatar

Nick Pazoles npazo

  • Sports Reference LLC
  • Chicago-adjacent
View GitHub Profile
@npazo
npazo / merged-branches.sh
Last active June 13, 2017 20:07 — forked from cramforce/merged-branches.sh
Find local git branches with a closed GitHub PR
#!/bin/bash
# Outputs commands to delete local branches that have an
# associated merged (really closed) PR.
# BIG CAVEAT: This will report branches that have a closed,
# but not merged PR for deletion.
# Your Github username and the name of the organization you are a part of
# If you are using forks, or aren't part of an org. then your GITHUB_ORG