#!/bin/sh # Commit with a designated author, author date, committer, # and commit date. This is just an example of how to do it; # adapt or parameterize as needed. DATE="1999-12-31 12:00:00 -0500" export GIT_COMMITTER_NAME="Jane Random" export GIT_COMMITER_EMAIL="jrandom@example.com" export GIT_COMMITTER_DATE="${DATE}" git config user.email "${GIT_COMMITER_EMAIL}" git commit --author "${GIT_COMMITTER_NAME} <${GIT_COMMITER_EMAIL}>" --date "${DATE}" git log HEAD^..HEAD