Skip to content

Instantly share code, notes, and snippets.

@dmerejkowsky
Created March 16, 2016 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmerejkowsky/2e00b0d84bacdf173d6f to your computer and use it in GitHub Desktop.
Save dmerejkowsky/2e00b0d84bacdf173d6f to your computer and use it in GitHub Desktop.
source-date-epoch-from-git
export SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)
# This sets SOURCE_DATE_EPOCH to the date of the last commit, (it's even better if it's a
# signed tag of course), which is perfect for reproducible builds.
# See here for more info : https://reproducible-builds.org/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment