#!/bin/sh # POSIX compliant shell script to display the last 5 commits of a given git repository git log --format='%H' -n5