Skip to content

Instantly share code, notes, and snippets.

@Mattias-
Created October 5, 2019 14:04
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 Mattias-/bdb70082c57bc882d3b03dfce5b66659 to your computer and use it in GitHub Desktop.
Save Mattias-/bdb70082c57bc882d3b03dfce5b66659 to your computer and use it in GitHub Desktop.
Reproducable repo
#!/bin/bash
set -eu
git init "$1"
export GIT_AUTHOR_DATE='2000-01-01 00:00:00 +0000'
export GIT_AUTHOR_NAME='a'
export GIT_AUTHOR_EMAIL='a'
export GIT_COMMITTER_DATE="${GIT_AUTHOR_DATE}"
export GIT_COMMITTER_NAME="${GIT_AUTHOR_NAME}"
export GIT_COMMITTER_EMAIL="${GIT_AUTHOR_EMAIL}"
git -C "$1" commit --allow-empty -m "Initial commit" -m "Randomly constructed message:
16fc7-1-46341529"
git -C "$1" show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment