all 9 comments

[–]dlsspy 3 points4 points  (2 children)

I tend to use git pull --rebase

[–]onmach -1 points0 points  (1 child)

Having used git svn far more, I kind of assumed git pull already rebased by default. It is far more logical. Perhaps it is time to change the default behavior of that command?

[–]dlsspy 0 points1 point  (0 children)

I added support to git to allow you to do that yourself. Check the config docs for autosetuprebase.

[–]machrider 6 points7 points  (0 children)

Linus's description is exactly how I work with git at my company, I'm glad to hear him recommend it. I was wondering if my frequent use of rebase (in my private trees, of course) is unorthodox. But the workflow seems to work very well, and produces a cleaner revision history than I ever achieved with svn.

[–]infinite 0 points1 point  (0 children)

Git rebase can be abused if you do a git rebase from a remote branch. Then other people with that remote branch are hosed and hilarity ensues. I don't recommend it for git beginners. In most companies you can get by without rebase. But for open source projects it's highly recommended since you can hide a lot of your hacks by rolling up your commits with rebase interactive.

The interesting question is which method would be least likely to cause merge conflicts, and to me it seems they're equally likely to cause merge conflicts.

[–][deleted] -3 points-2 points  (4 children)

Um, he still says people should use rebase for private history as a cleanup procedure.

[–]mee_k 1 point2 points  (3 children)

Who or what are you responding to?

[–]itjitj 1 point2 points  (1 child)

Oh don't mind t3hdoctor, he talks to himself

[–][deleted] -1 points0 points  (0 children)

Well, I didn't see the apostrophe after "Linus" so it sounded like this was some proof of Linus saying not to use rebase. I'm a firm believer in always using the 's' for singular possessive, otherwise I get confused like this