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