3 ms·
This article is pretty much the correct response to the pull --rebase discussions. No need for it -- you should be using a branch. But I'm not sold on no rebas
by Myrmornis 14y ago
This article is pretty much the correct response to the pull --rebase discussions. No need for it -- you should be using a branch.
But I'm not sold on no rebase at all: a common workflow for me is commit often while getting something working, then rebase 4 or 5 commits into a presentable unit (using magit). I have to admit I hadn't noticed that the timestamps were preserved by rebase. And there doesn't seem to be a rebase option that tells git to create new timestamps with chronological order matching the new commit order? I could use `filter-branch`, but it seems heavyweight.
One other criticism of the article:
> A soft reset back to origin's HEAD, and then re-commit your work
That leads to errors: if you've added new files, you may very well forget to add the same set again after the soft reset.
- cjh_ 14y agoI think you want `--ignore-date`, The man pages are very confusing about such things (in fact there is a minor documentation error in the current documentation on Debian Wheezy). My concern with using a soft reset mirrors yours, but I would also like to add that it is effectively doing a manual rebase (albeit with different semantics around date) so it seemed rather odd in an article arguing against rebase.
- Myrmornis 14y agoThanks. However `--ignore-date` is incompatible with `--interactive`. I should have said in my description above "rebase --interactive 4 or 5 commits into a presentable unit".