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

#!/bin/sh
mkdir /tmp/gitamend
cd /tmp/gitamend
touch foo
git init
git add foo
git commit -m 'an initial commit'
git show HEAD
git commit --amend --date='1941-12-07T12:00:00+00' --no-edit
git show HEAD
rm -rf /tmp/gitamend