Browse Source

fragments/git-amend-date: demonstrate epoch brokenness

As best I remember, this proceeded from some IRC conversation.
Brennen Bearnes 9 months 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 @@
1
+#!/bin/sh
2
+mkdir /tmp/gitamend
3
+cd /tmp/gitamend
4
+
5
+touch foo
6
+git init
7
+git add foo
8
+git commit -m 'an initial commit'
9
+git show HEAD
10
+
11
+git commit --amend --date='1941-12-07T12:00:00+00' --no-edit
12
+git show HEAD
13
+
14
+rm -rf /tmp/gitamend

Loading…
Cancel
Save