Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
225 B

  1. #!/bin/sh
  2. mkdir /tmp/gitamend
  3. cd /tmp/gitamend
  4. touch foo
  5. git init
  6. git add foo
  7. git commit -m 'an initial commit'
  8. git show HEAD
  9. git commit --amend --date='1941-12-07T12:00:00+00' --no-edit
  10. git show HEAD
  11. rm -rf /tmp/gitamend