Last active
June 21, 2017 11:27
-
-
Save fahadsiddiqui/ecb81755ae19eb5add1fce17bf7c730a to your computer and use it in GitHub Desktop.
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
# disabling second argument if "push" else works as it is | |
block_git_push() { | |
if [ $1 = "push" ]; then | |
echo "\"push\" is blocked temporarily in ~/.bashrc file to prevent volcano eruption." | |
else | |
git $* | |
fi | |
} | |
alias git=block_git_push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment