Files
git/builtin
Matthieu Moy ec8460bd91 push: better error messages when push.default = tracking
A common scenario is to create a new branch and push it (checkout -b &&
push [--set-upstream]). In this case, the user was getting "The current
branch %s has no upstream branch.", which doesn't help much.

Provide the user a command to push the current branch. To avoid the
situation in the future, suggest --set-upstream.

While we're there, also improve the error message in the "detached HEAD"
case. We mention explicitly "detached HEAD" since this is the keyword to
look for in documentations.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-03-02 15:34:23 -08:00
..
2011-02-27 21:17:36 -08:00
2010-12-12 21:49:53 -08:00
2011-02-27 00:29:58 -08:00
2010-11-24 15:55:19 -08:00
2010-10-21 17:16:10 -07:00
2011-02-27 21:17:36 -08:00
2010-12-12 21:49:50 -08:00
2010-11-24 15:55:19 -08:00
2010-11-15 10:04:43 -08:00
2010-11-24 15:55:19 -08:00
2011-02-16 13:20:50 -08:00
2010-11-17 15:01:00 -08:00
2010-11-15 10:04:43 -08:00