News for hackers. Stuff that matters.
Re:What I Hate About Git by CJefferson on Sunday August 05, 2012 @01:23PM (#4341983)
Sorry yes, I got the asymmetry the wrong way around :)

The problem this causes (for me) is that if I have commits in other branches, 'git push' will fail (as other branches can't be fast-forwarded), but 'git pull' won't fix it. Of course, I can get around it, but it's annoying.

Re:What I Hate About Git by ben_h on Sunday August 05, 2012 @10:54PM (#4343503)
You can configure `git push` to push just the current branch to its configured remote, by setting 'push.default' to 'upstream'.

`git config --global push.default upstream`

The relevant docs (droplr'd, since you can't anchor-link into the online manpages): http://d.pr/Rlqn

Re:What I Hate About Git by encoderer on Sunday August 05, 2012 @01:36PM (#4342010)
What you mean when you say "you can get around it" is just specifying the branch you want to push. Just sayin'. It's not like you have to muck with settings and jump hoops.