Created
November 4, 2021 18:21
-
-
Save jorgerance/c47053fd56a2518854d56cacd59de81d 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
alias gg="git add main.py && git commit -m 'commit alias' && git push || \ | |
printf \"\nRun 'git commit add -A' and push changes?\nPress ENTER to confirm: \n\"; \ | |
read input; \ | |
if [ -z ${input} ]; then \ | |
printf '\nCommiting in 3...' && sleep 0.75 && \ | |
printf '2...' && sleep 0.75 && \ | |
printf '1...' && sleep 0.75 && \ | |
printf \" ** Committing and pushing changes NOW! **\n\n\" && sleep 0.75 && \ | |
git add -A && git commit -m 'commit alias' && git push || \ | |
printf \"\n** ERROR: Not a git directory **\n\"; \ | |
fi" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment