Skip to content

Instantly share code, notes, and snippets.

@ephemient
Created March 18, 2016 06:02
Show Gist options
  • Save ephemient/90a6ca7a18d7507276b6 to your computer and use it in GitHub Desktop.
Save ephemient/90a6ca7a18d7507276b6 to your computer and use it in GitHub Desktop.
#!/bin/sh -e
git reset "$(git hash-object -t commit -w --stdin <<END
tree $(git hash-object -t tree -- /dev/null)
author nobody <nobody@localhost> 0 +0000
committer nobody <nobody@localhost> 0 +0000
END
)"
git log -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment