#!/bin/bash
if [ -z "$1" ]; then
  echo "Didn't pass in option for date -d"
  exit 1
fi
newdate=$(date -d "$1")
export GIT_AUTHOR_DATE=$newdate
export GIT_COMMITTER_DATE=$newdate
git commit