From: daicoden <daicoden@copypastel.com>
To: git@vger.kernel.org
Subject: Re: How to host a github?
Date: Sat, 19 Sep 2009 14:01:47 -0700 (PDT) [thread overview]
Message-ID: <25525401.post@talk.nabble.com> (raw)
In-Reply-To: <24713161.post@talk.nabble.com>
jvsrvcs wrote:
>
> I want to share code with a few co-workers and I want to use git.
>
> I installed git (cygwin), created a /project/ and then $cd project
> and then $git init
>
> I have found so much documentation as to what to do next, that
> I'm confused.
>
> Do I have to create an account on github in order to share code with
> a few local developers?
>
> Could I run some sort of server on my laptop in order to share code?
> (we only need to share during office hours). Basically I just
> want to share code but do not want to sign up for an account
> on github.
>
> How do I work this?
>
> thanks
>
> jvsrvcs
>
Hey, assuming you have shell access into your laptop, create a user named
git. You don't have to do this but you want to give everyone access to an
account on the laptop. You could also create a usergroup and add the
project folder to that group and give all your developers access to that
group.
Either-way once everyone is able to log onto the laptop make a new directory
called project.git. Then go into that directory and use git --bare init.
Assuming you created a user named git you can then check the code out via
git clone git@localhost:project.git
to start things off from the source you will be working on you can then use:
git init
touch 'Readme'
git add Readme
git commit -m 'Initial Comit'
git remote add origin git@ip:project.git
git push origin master
--
View this message in context: http://www.nabble.com/How-to-host-a-github--tp24713161p25525401.html
Sent from the git mailing list archive at Nabble.com.
prev parent reply other threads:[~2009-09-19 21:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-29 6:25 How to host a github? jvsrvcs
2009-07-29 7:59 ` Alex Riesen
2009-07-29 9:31 ` Jakub Narebski
2009-09-19 21:01 ` daicoden [this message]
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=25525401.post@talk.nabble.com \
--to=daicoden@copypastel.com \
--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).