Re: unable to push

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 1 Jun 2008, Jeff King wrote:

On Sun, Jun 01, 2008 at 11:28:39AM -0700, david@xxxxxxx wrote:

I'm not understanding that, either. You not only created localmaster,
but you deleted master. Did you maybe do a "git branch -m"?

in the public repo I had never created a 'master' branch. I had just done
a clone, setup git daemon, and pushed to it.

Did you mean "init" here instead of clone? The clone should have created
at least one branch (generally master, but depending on the current
branch of the cloned repo).

no, it was definantly a clone, and it did not create a master branch (at least not one that showed up with git branch -a)

David Lang

at some point several days later I found that my push didn't work and that
I wasn't on any branch in the public repo. in reading the man page for git
branch I saw the --track option, so I created the localmaster branch to
try and get things working.

Ah, ok. That makes sense. The right fix was to just manually specify the
refspec the first time ("git push public master") after which you could
just do "git push public" if you wanted.

-Peff

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux