git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[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
Next: Matthieu Moy
Message 1 of 12 in “push: better error messages”
  1. 0/2 push: better error messagesMatthieu Moy, Feb 28, 2011
  2. 1/2 push: better error message when push.default = trackingMatthieu Moy, Feb 28, 2011
  3. 2/2 push: better error messages for detached HEAD and "no destination"Matthieu Moy, Feb 28, 2011
  4. Jay SoffianFeb 28, 2011
  5. Matthieu MoyFeb 28, 2011
  6. Junio C HamanoFeb 28, 2011
  7. 1/2 push: better error messages when push.default = trackingMatthieu Moy, Mar 1, 2011
  8. 2/2 push: better error message when no remote configuredMatthieu Moy, Mar 1, 2011
  9. Junio C HamanoMar 1, 2011
  10. 1/2 push: better error messages when push.default = trackingMatthieu Moy, Mar 2, 2011
  11. 2/2 push: better error message when no remote configuredMatthieu Moy, Mar 2, 2011
  12. Junio C HamanoMar 3, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.