## rvfrom View revisons from certain commit to head `git rvfrom [hash|branch|tag]` ```bash 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 Search commit with query text from log (case insensitive) `git search [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' ```