8000 rewriting git history - yuck · freewh/python-scripts@f78d954 · GitHub
[go: up one dir, main page]

Skip to content
Sign in

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 11 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)
0