From: Matthieu Moy Date: Wed, 02 Mar 2011 20:12:11 GMT Subject: [PATCH 2/2 v3] push: better error message when no remote configured Message-ID: <1299096731-14194-2-git-send-email-Matthieu.Moy@imag.fr> In-Reply-To: <1299096731-14194-1-git-send-email-Matthieu.Moy@imag.fr> Signed-off-by: Matthieu Moy --- No change since v2 builtin/push.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/builtin/push.c b/builtin/push.c index 1b493fb..c3c2feb 100644 --- a/builtin/push.c +++ b/builtin/push.c @@ -157,7 +157,14 @@ static int do_push(const char *repo, int flags) if (!remote) { if (repo) die("bad repository '%s'", repo); - die("No destination configured to push to."); + die("No configured push destination.\n" + "Either specify the URL from the command-line or configure a remote repository using\n" + "\n" + " git remote add \n" + "\n" + "and then push using the remote name\n" + "\n" + " git push \n"); } if (remote->mirror) -- 1.7.4.1.176.g6b069.dirty