Skip to content

Instantly share code, notes, and snippets.

@cssence
Last active January 20, 2018 13:45
Show Gist options
  • Save cssence/8a266c760c00386e5c946b95437062e5 to your computer and use it in GitHub Desktop.
Save cssence/8a266c760c00386e5c946b95437062e5 to your computer and use it in GitHub Desktop.
#!/bin/bash
read -p "Ensure param #1 (\"$1\") format is \"YYYY-MM-DDThh:mm:ss\", then press [ENTER] to commit..."
GIT_AUTHOR_DATE="$1" GIT_COMMITTER_DATE="$1" git commit $2
@cssence
Copy link
Author

cssence commented Jan 20, 2018

Example date: 2016-12-11T12:34:56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment