Re: git push default behaviour?
- From
Eric Hanchrow <eric.hanchrow@gmail.com>
- Date
- Mar 17, 2012, 15:49 UTC
- Message-ID
- <loom.20120317T164347-871@post.gmane.org>
- In-Reply-To
- <7vwr6u6qrn.fsf@alter.siamese.dyndns.org>
In response to http://git-blame.blogspot.com/2012/03/please-discuss-what-git-push-should-do.html:
I think either 'current' or 'upstream' is a better default than 'matching', since it's less likely to surprise newbies. However, I cannot decide which of 'current' or 'upstream' is the best choice. It might be worthwhile to have 'git push' warn when someone has push.default = current or push.default = upstream, AND when @{u} has a different name than the local branch -- in other words, emit a warning when 'upstream'' and 'current' refer to different branches. The warning itself should be turn-off-able, since it would get pretty old pretty quickly.