From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Barry Fishman <barry_fishman@acm.org>
Cc: git@vger.kernel.org
Subject: Re: Problems setting up bare repository (git 1.5.3.3)
Date: Tue, 2 Oct 2007 18:40:20 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.64.0710021834470.28395@racer.site> (raw)
In-Reply-To: <m34ph9tye1.fsf@barry_fishman.acm.org>
Hi,
[please do not cull me from the Cc: list, especially when you are quoting
me]
On Tue, 2 Oct 2007, Barry Fishman wrote:
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> > Well, if the OP had used "git push <bla> master" instead of "...
> > master:master", it would have worked. I am unaware of any tutorial
> > that suggests the latter, only of tutorials that suggest the former.
>
> I did recheck the tutorials, and did not find the code I was
> using. So there was nothing incorrect in the documentation.
Good. Just for my curiousity: where in the documentation did you look for
help? (We might want to advertise "git push <nick> <branch>" more loudly
there.)
> What distracted me was that after the "git --bare init", there seemed to
> be a incompletely defined setup. This sent me down the wrong path.
>
> Although there was a master branch to which HEAD pointed, there was no
> ref/heads/master file or even a "packed-refs".
That means that there was no master branch. Before the first commit, a
branch does not exist. We are stricter in that regard than other SCMs.
> If there isn't an initial master branch, then shouldn't "git branch" be
> able to create one.
Why? I really do not see the point in creating a branch which is named
different than "master", when you have nothing to begin with.
Just use "master". As easy as that.
If you really have to paint the bike shed, you can always rename your
branch later, when you got something, by "git branch -m <new-branch-name>".
> This command creates an empty git repository - basically a .git directory
> with subdirectories for objects, refs/heads, refs/tags, and template
> files. An initial HEAD file references the refs/heads/master branch
> which is created with the first commit.
How about "Your first commit will create the master branch" instead of the
last sentence?
Ciao,
Dscho
next prev parent reply other threads:[~2007-10-02 17:41 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-01 21:46 Problems setting up bare repository (git 1.5.3.3) Barry Fishman
2007-10-01 22:32 ` 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 [this message]
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=Pine.LNX.4.64.0710021834470.28395@racer.site \
--to=johannes.schindelin@gmx.de \
--cc=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).