On Fri, Jul 20, 2012 at 6:40 PM, Thiago Farina <tfrans...@gmail.com> wrote:
> On Fri, Jul 20, 2012 at 4:19 PM, PJ Weisberg
> <p...@irregularexpressions.net> wrote:
>> On Fri, Jul 20, 2012 at 8:49 AM, Thiago Farina <tfrans...@gmail.com> wrote:
>>> What I'm looking for is to upload/create the remote branch in github
>>> from inside my local branch, without having to checkout master in
>>> order to do so.
>> In that case, do exactly what you did, except don't checkout master.
> Why you suggest that? If I demonstrated that origin master or just
> origin in the current branch doesn't do what I want, i.e, push it to
> github.

In your original email, you had one command that did what you wanted
and one that didn't.

$ git push origin master
$ git push origin feature-work

Can you spot the difference between them?

Like Konstantin said, you can look into the different options for
push.default, but don't expect Git to push one branch when you told it
to push another.


Gehm's Corollary to Clark's Law: Any technology distinguishable from
magic is insufficiently advanced.
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to