login
Header Space

 
 

Problems setting up bare repository (git 1.5.3.3)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Monday, October 1, 2007 - 5:46 pm

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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Problems setting up bare repository (git 1.5.3.3), Barry Fishman, (Mon Oct 1, 5:46 pm)
Re: Problems setting up bare repository (git 1.5.3.3), Junio C Hamano, (Mon Oct 1, 6:32 pm)
Re: Problems setting up bare repository (git 1.5.3.3), Johannes Schindelin, (Tue Oct 2, 5:46 am)
Re: Problems setting up bare repository (git 1.5.3.3), Johannes Schindelin, (Tue Oct 2, 1:45 pm)
Re: Problems setting up bare repository (git 1.5.3.3), Junio C Hamano, (Tue Oct 2, 2:23 pm)
Re: Problems setting up bare repository (git 1.5.3.3), Johannes Schindelin, (Tue Oct 2, 4:59 pm)
Re: Problems setting up bare repository (git 1.5.3.3), Junio C Hamano, (Tue Oct 2, 3:09 pm)
Re: Problems setting up bare repository (git 1.5.3.3), Johannes Schindelin, (Tue Oct 2, 5:02 pm)
Re: Problems setting up bare repository (git 1.5.3.3), Shawn O. Pearce, (Mon Oct 1, 7:35 pm)
Re: Problems setting up bare repository (git 1.5.3.3), Junio C Hamano, (Mon Oct 1, 7:24 pm)
Re: Problems setting up bare repository (git 1.5.3.3), J. Bruce Fields, (Mon Oct 1, 7:17 pm)
speck-geostationary