From: "J. Bakshi" <joydeep.bakshi@infoservices.in>
To: Holger Hellmuth <hellmuth@ira.uka.de>
Cc: git@vger.kernel.org
Subject: Re: How to create empty CENTRAL git with master / development branch ?
Date: Wed, 4 Apr 2012 12:41:22 +0530 [thread overview]
Message-ID: <201204040711.q347BTXg025316@VM-MailSafe-02.soltecsis.com> (raw)
In-Reply-To: <4F7B0F1B.3000304@ira.uka.de>
On Tue, 03 Apr 2012 16:54:19 +0200
Holger Hellmuth <hellmuth@ira.uka.de> wrote:
> On 03.04.2012 12:53, J. Bakshi wrote:
> > Dear list,
> >
> > I need to create git repos on a remote server by the command executed on that server
> > through ssh as
> >
> > ` ` ` ` `
> > git --bare init project_name.git
>
> you probably meant "git init --bare project_name.git"
Yes right. Sorry for the mistake.
>
> > How can I also add the master branch, so that users don't need to
> > execute [ git push origin master ] ?
>
> What else do you want them to execute? "git init --bare" creates an
> empty repository. Without pushing to it it will always stay empty
>
> Generally: If you want a central repository, the first one to push to it
> might do something like this:
>
> git remote add origin ssh://big.brother.edu/repo.git
> git push origin master
> git config branch.master.remote origin
> git config branch.master.merge refs/heads/master
>
> Everyone else could do
>
> git clone
>
> Now everyone will push to the repository master when they do "git push".
>
> Is that what you wanted to know?
well.... I like to create the master just after creating the bare repo.
So that the users can just start working on it without "git push origin master"
As I can already ssh into the central git server, I don't need any further
ssh://big.brother.edu/repo.git
So what should I do after creating a bare empty repo to generate the master
there ?
# git init --bare project_name.git
# cd project_name.git
.... and can I execute here any command to add master ?
Thanks
next prev parent reply other threads:[~2012-04-04 7:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-03 10:53 How to create empty CENTRAL git with master / development branch ? J. Bakshi
2012-04-03 14:54 ` Holger Hellmuth
2012-04-03 15:22 ` Tomas Carnecky
2012-04-04 7:11 ` J. Bakshi [this message]
2012-04-04 17:16 ` Junio C Hamano
2012-04-04 18:00 ` Holger Hellmuth
2012-04-04 18:07 ` Holger Hellmuth
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=201204040711.q347BTXg025316@VM-MailSafe-02.soltecsis.com \
--to=joydeep.bakshi@infoservices.in \
--cc=git@vger.kernel.org \
--cc=hellmuth@ira.uka.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.