News for hackers. Stuff that matters.
Re:Git: Using Advanced Rebase Features for a Clean Repository by nothrabannosir on Wednesday August 09, 2017 @07:45AM (#14967597)
Just a note on your nr1: I don't think rebase back-dates the CommitDate, does it? There are two dates on any commit: AuthorDate and CommitDate. Try git log --format=fuller. E.g.:

    Author:     ...
    AuthorDate: Wed Aug 2 11:02:03 2017 +0100
    Commit:     ...
    CommitDate: Wed Aug 9 12:08:52 2017 +0100
This is a commit I originally created last week, but rebased onto my current branch just now. To change the CommitDate, you have to go filter-branch, afaik. But maybe I'm ignorant of a germane rebase feature?
Re:Git: Using Advanced Rebase Features for a Clean Repository by dmacedo on Wednesday August 09, 2017 @08:19AM (#14967815)
You're correct, it doesn't change the author date.

In order to do no.1; perform your rebase, and then change the dates with filter-branch. I have a couple of helper functions for both for resetting to commit or author dates [1], use at your own risk! :)

[1] https://gist.github.com/dm/aad8e34a5ee6b542a0bc788375b548ed

Re:Git: Using Advanced Rebase Features for a Clean Repository by EnderMB on Wednesday August 09, 2017 @09:29AM (#14968522)
Yep, it took me a while to figure out why my commit dates didn't match the dates within GitHub. Luckily, it's fairly straightforward to figure out once you know what the issue is!