Skip to content

Instantly share code, notes, and snippets.

@goyalmohit
Created April 14, 2019 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goyalmohit/f4376529d3249c5bc41b8795575b8c08 to your computer and use it in GitHub Desktop.
Save goyalmohit/f4376529d3249c5bc41b8795575b8c08 to your computer and use it in GitHub Desktop.
Shell script for pre-rebase git hook
#!/bin/sh
# Disallow all rebasing
echo "pre-rebase: Rebasing is dangerous, follow the golden rules of rebasing."
exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment