[PATCH 0/2] push: better error messages
- From
Matthieu Moy <matthieu.moy@imag.fr>
- Date
- Feb 28, 2011, 21:14 UTC
- Message-ID
- <1298927645-2716-1-git-send-email-Matthieu.Moy@imag.fr>
Since it's likely to become the default in 1.8.0, I've played a bit with "push.default = tracking". I was very happy to see that the flow
git init bla git clone bla git commit git push
was working like a charm (it required a --all or so the first time), but the "create a new branch and push it" is still a bit hard to get for newbies.
[PATCH 1/2] should solve it, by providing a cut-and-paste ready command to do the push.
While I was there, I also improved a bit other messages which gives [PATCH 2/2]. I've kept the changes in separate patches, but they may be squashed once reviewed.
Matthieu Moy (2): push: better error message when push.default = tracking push: better error messages for detached HEAD and "no destination"
builtin/push.c | 27 ++++++++++++++++++++------- 1 files changed, 20 insertions(+), 7 deletions(-)
-- 1.7.4.1.142.g43604.dirty