News for hackers. Stuff that matters.
Re:Git pull --rebase until it hurts by reledi on Tuesday April 30, 2013 @06:14AM (#5631268)
Doing stuff like that is dangerous in my opinion. People may forget that they're actually doing something different from what they typed.

Explicit is better than implicit.

Re:Git pull --rebase until it hurts by noselasd on Tuesday April 30, 2013 @07:10AM (#5631427)
But even typing git pull isn't canonical, bar what the defaults are. git pull pretty much does a git fetch && git merge for you.
Re:Git pull --rebase until it hurts by reledi on Tuesday April 30, 2013 @05:09PM (#5634873)
Yes but that's the default behaviour of git pull so it's expected to fetch and merge when you pull. Changing the default behaviour can lead to confusion or mistakes.
Re:Git pull --rebase until it hurts by rachbelaid on Tuesday April 30, 2013 @07:41AM (#5631542)
But as noselasd said git pull = Fetch + merge

Setting up the rebase in config of a specific branch stay explicit because Git will

If the rebase is not straight forward then you can still abort it.

I would love that git has a config feature to force ff-only on pull but base on what I know you need to create an alias to have `pull --ff-only` replacing `pull`