I know this is an old question, but I happened to come across it and have an answer. I put the following function in .bash_profile:
#!/bin/bash
git()
{
case "$1" in
ci|commit)
gitargs=""
for i in $@; do
if [ "$1" != "$i" ]; then
gitargs="$gitargs $i"
fi
done
command git commit -v $gitargs
;;
*)
command git "$@"
;;
esac
}
This turns git
into a bash function that transforms git commit
into git commit -v
and leaves the rest of the arguments mostly alone. However, it breaks git commit
arguments that have whitespace, and it won't let you commit a file named ci
or commit
.