Skip to content

Instantly share code, notes, and snippets.

@jorgerance
Created November 4, 2021 18:21
Show Gist options
  • Save jorgerance/c47053fd56a2518854d56cacd59de81d to your computer and use it in GitHub Desktop.
Save jorgerance/c47053fd56a2518854d56cacd59de81d to your computer and use it in GitHub Desktop.
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