Skip to content

Instantly share code, notes, and snippets.

@fahadsiddiqui
Last active June 21, 2017 11:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
# 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