LWN.net Logo

Good idea!

Good idea!

Posted Mar 19, 2012 15:24 UTC (Mon) by dskoll (subscriber, #1630)
Parent article: Git project seeks discussion on "push" change

IMO, this is a much more sensible default. I just went in and changed my .gitconfig to specify push.default = upstream.


(Log in to post comments)

Good idea!

Posted Mar 19, 2012 15:26 UTC (Mon) by dskoll (subscriber, #1630) [Link]

err... I had to use tracking rather than upstream because I'm still running 1.7.2.5, but the principle is the same.

Good idea!

Posted Mar 19, 2012 16:03 UTC (Mon) by danieldk (guest, #27876) [Link]

Indeed, I always disliked the standard push behavior, but was (apparently) too lazy to find this option.

Good idea!

Posted Mar 19, 2012 16:38 UTC (Mon) by aorth (subscriber, #55260) [Link]

I agree, I think 'upstream' is a more sensible default. I was always confused by the default behavior... this helps. :)

git option documentation

Posted Mar 19, 2012 17:13 UTC (Mon) by ballombe (subscriber, #9523) [Link]

You are not too lazy.

Options for 'git foo' should be documented in 'git help foo', but this is often not the case. Instead push.default is only documented in 'git help config', so basically you will not find about it unless you know it exists.

If options were documented properly, there would probably be less complains about default behaviors.

Good idea!

Posted Mar 19, 2012 19:25 UTC (Mon) by xxiao (subscriber, #9631) [Link]

+1 on this. please set up it as default(i.e. upstream) asap.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds