Created
April 14, 2019 13:15
-
-
Save goyalmohit/f4376529d3249c5bc41b8795575b8c08 to your computer and use it in GitHub Desktop.
Shell script for pre-rebase git hook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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