Re: [PATCH] Include a git-push example for creating a remote branch

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: Miles Bader <miles@...>, Shawn O. Pearce <spearce@...>, <git@...>
Date: Thursday, September 6, 2007 - 11:48 am

On Wed, 05 Sep 2007 23:30:31 -0700, Junio C Hamano wrote:

Couldn't we just use an initial + to indicate this as well?

I would imagine an exchange like this:

    $ git push remote foo
    git: No branch 'foo' exists in the remote server, to create it use:

	git push remote +foo

But regardless of the syntax, it would be nice if the error message
were explicit about how to achieve the goal the user wants. It's just
that forcing the user to say "foo:refs/heads/foo" seems a way to force
the user to get plumbing grime on their clean hands.

-Carl
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Include a git-push example for creating a remote..., Carl Worth, (Thu Sep 6, 11:48 am)