echo "POST-CHECKOUT" echo "PREV-HEAD=$1" echo "CURR-HEAD=$2" echo "BRANCH-CHECKOUT=$3" git log --graph --all --decorate $2 | head -n 1