Skip to content

Instantly share code, notes, and snippets.

@blip-lorist
Last active March 16, 2017 16:47
Show Gist options
  • Save blip-lorist/e0f819433b87dbb198533fd93688dcbf to your computer and use it in GitHub Desktop.
Save blip-lorist/e0f819433b87dbb198533fd93688dcbf to your computer and use it in GitHub Desktop.
Breakpoint check before git push
# Add to your .bash_profile or .bash_aliases
alias gp='if grep -r --exclude-dir={.git,tmp,log,coverage,public} -Hn binding.pry .; then echo Please remove breakpoints in the above files; else git push; fi'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment