Browse Source

fragments/git-amend-date: demonstrate epoch brokenness

As best I remember, this proceeded from some IRC conversation.
master
Brennen Bearnes 2 years ago
parent
commit
f4f9f53893
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      home/fragments/git-amend-date/amend.sh

+ 14
- 0
home/fragments/git-amend-date/amend.sh View File

@ -0,0 +1,14 @@
#!/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

Loading…
Cancel
Save