View revisons from certain commit to head
git rvfrom [hash|branch|tag]
git config --global alias.rvfrom '!\
f(){
if test -n "$1"; then
git rev-parse "$1" >/dev/null 2>&1 || { echo Unknown revision "$1"; return; }
rev="$1..";
fi;
git log --pretty="* %s" $rev 2>/dev/null;
}; f'
Search commit with query text from log (case insensitive)
git search <query text> [numbers of commit, default to 1]
git config --global alias.search '!\
f(){
test -z "$1" && return;
number=1
test -n "$2" && number=$(($2 + 0))
git log --grep "$1" -i "-${number}" --pretty="%h %s";
}; f'