From f78d95455f61bb75145a95fc92b5a8a9fd84051d Mon Sep 17 00:00:00 2001 From: Michael Herman Date: Sun, 15 Jun 2014 14:00:00 +0100 Subject: [PATCH] rewriting git history - yuck --- 17_rewrite_git_history.md | 11 +++++++++++ readme.md | 1 + 2 files changed, 12 insertions(+) create mode 100644 17_rewrite_git_history.md diff --git a/17_rewrite_git_history.md b/17_rewrite_git_history.md new file mode 100644 index 0000000..f67437f --- /dev/null +++ b/17_rewrite_git_history.md @@ -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 +$ 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 +``` \ No newline at end of file diff --git a/readme.md b/readme.md index 1303ca7..c959ab0 100644 --- a/readme.md +++ b/readme.md @@ -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) \ No newline at end of file