Skip to content

Instantly share code, notes, and snippets.

@AaronRutley
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AaronRutley/d556498c56736fa2db25 to your computer and use it in GitHub Desktop.
Save AaronRutley/d556498c56736fa2db25 to your computer and use it in GitHub Desktop.
git commit alias
# git commit alias
alias gc='function _gc(){
tput bold tput setaf 6
echo "-- git status..."
git status -s
echo "-- git add all modified..."
git add --all :/ ;
echo "-- git commit all modified, with commit message:"
read commit_message
git commit -am "$commit_message"
echo "--- commited with message: $commit_message, now running git push..."
git push
echo "-- git commit complete..."
};_gc'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment