git check first commit code example Example: git check first commit git rev-list --max-parents=0 HEAD