Usage:
push # opens default editor for commit message, then pushes
push updated readme.md # commits with message "updated readme.md", then pushes
function push() { | |
git add . | |
if [ $# -eq 0 ]; then | |
git commit -a | |
else | |
git commit -am "$*" | |
fi | |
git push | |
} |