git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Barry Fishman <barry_fishman@acm.org>
To: git@vger.kernel.org
Subject: Problems setting up bare repository (git 1.5.3.3)
Date: Mon, 01 Oct 2007 17:46:36 -0400	[thread overview]
Message-ID: <m3fy0u7bk3.fsf@barry_fishman.acm.org> (raw)

Using the 1.5.3.3 release:

$ cd /pub/git
$ mkdir foo.git
$ cd foo.git
$ git --bare init
Initialized empty Git repository in /pub/git/foo.git/
$ git --bare branch

Note that there is no master branch.

$ cd /some/git/workdir
$ git push /pub/git/foo.git master:master
error: dst refspec master does not match any existing ref on the remote and does not start with refs/.
fatal: The remote end hung up unexpectedly
error: failed to push to '/pub/git/foo.git'

$ git push --force /pub/git/foo.git master:master
error: dst refspec master does not match any existing ref on the remote and does not start with refs/.
fatal: The remote end hung up unexpectedly
error: failed to push to '/pub/git/foo.git'

$ git push --all /pub/git/foo.git
updating 'refs/heads/master'
  from 0000000000000000000000000000000000000000
  to   e623fb5ba6fac345eb6af552b40412acdc447b31
Generating pack...
Done counting 61 objects.
Deltifying 61 objects...
 100% (61/61) done
Writing 61 objects...
Unpacking 61 objects...
 100% (61/61) done
Total 61 (delta 31), reused 50 (delta 25)
 100% (61/61) done
refs/heads/master: 0000000000000000000000000000000000000000 -> e623fb5ba6fac345eb6af552b40412acdc447b31

But what if I have more branches and want to just push the master
branch?  This worked when I tried it last (probably 1.5.2.2).  This time
I had to "git push --all" and then delete all the unwanted branches.

-- 
Barry Fishman

             reply	other threads:[~2007-10-01 21:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-01 21:46 Barry Fishman [this message]
2007-10-01 22:32 ` Problems setting up bare repository (git 1.5.3.3) Junio C Hamano
2007-10-01 23:06   ` Carl Worth
2007-10-01 23:17     ` J. Bruce Fields
2007-10-01 23:24     ` Junio C Hamano
2007-10-01 23:47       ` Carl Worth
2007-10-01 23:35     ` Shawn O. Pearce
2007-10-02  9:46     ` Johannes Schindelin
2007-10-02 13:54       ` Barry Fishman
2007-10-02 17:40         ` Johannes Schindelin
2007-10-02 19:54           ` Barry Fishman
2007-10-02 15:39       ` Carl Worth
2007-10-02 17:45         ` Johannes Schindelin
2007-10-02 18:23           ` Junio C Hamano
2007-10-02 18:55             ` Sean
2007-10-02 19:09               ` Junio C Hamano
2007-10-02 21:02                 ` Johannes Schindelin
2007-10-02 20:59               ` Johannes Schindelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3fy0u7bk3.fsf@barry_fishman.acm.org \
    --to=barry_fishman@acm.org \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).