Skip to content

Commit f78d954

Browse files
committed
rewriting git history - yuck
1 parent 3c25e47 commit f78d954

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

17_rewrite_git_history.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
I always forget how to back date, so here we go ...
2+
3+
> This is dangerous and should be signed off by the omniscience, omnipotence Git him/herself. Rewriting history is evil, in other words.
4+
5+
```bash
6+
$ git add <file_name>
7+
$ export GIT_COMMITER_DATE="Sun Jun 15 14:00 2014 +0100"
8+
$ export GIT_AUTHOR_DATE="Sun Jun 15 14:00 2014 +0100"
9+
$ git commit -m "so bad"
10+
$ git push
11+
```

readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@
1616
1. **14_html_to_markdown.sh**: Convert all html files in a single directory to markdown
1717
1. **15_check_my_environment.py**: Pass in a config file based on your environment.
1818
1. **16_jinja_quick_load.py**: Render a quick Jinja2 template
19+
1. **17_rewrite_git_history.md**: Backdating/Rewriting Git history (use at your own risk)

0 commit comments

Comments
 (0)