Skip to content

Instantly share code, notes, and snippets.

@dimon4ezzz
Created May 31, 2020 12:16
Show Gist options
  • Save dimon4ezzz/0303db9fa473c7a4d24bf11410e21988 to your computer and use it in GitHub Desktop.
Save dimon4ezzz/0303db9fa473c7a4d24bf11410e21988 to your computer and use it in GitHub Desktop.
does git utc commit on unix-based systems
#!/bin/bash
git config --global alias.utccommit '!GIT_AUTHOR_DATE="$(date --utc +%Y-%m-%dT%H:%M:%S%z)" GIT_COMMITTER_DATE="$(date --utc +%Y-%m-%dT%H:%M:%S%z)" git commit'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment