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