rewriting git history - yuck
This commit is contained in:
parent
3c25e474d3
commit
f78d95455f
11
17_rewrite_git_history.md
Normal file
11
17_rewrite_git_history.md
Normal 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
|
||||
```
|
@ -16,3 +16,4 @@
|
||||
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. **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)
|
Loading…
Reference in New Issue
Block a user