#!/bin/sh # git log --format=%H # More robust git rev-list --max-count=5 HEAD