rewriting git history - yuck

This commit is contained in:
Michael Herman 2014-06-15 14:00:00 +01:00
parent 3c25e474d3
commit f78d95455f
2 changed files with 12 additions and 0 deletions

11
17_rewrite_git_history.md Normal file
View File

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

View File

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