git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to host a github?
@ 2009-07-29  6:25 jvsrvcs
  2009-07-29  7:59 ` Alex Riesen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jvsrvcs @ 2009-07-29  6:25 UTC (permalink / raw)
  To: git


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
-- 
View this message in context: http://www.nabble.com/How-to-host-a-github--tp24713161p24713161.html
Sent from the git mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to host a github?
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Alex Riesen @ 2009-07-29  7:59 UTC (permalink / raw)
  To: jvsrvcs; +Cc: git

On Wed, Jul 29, 2009 at 08:25, jvsrvcs<jvsrvcs@gmail.com> 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

See also "git add" and "git commit" in the tutorials below.

> I have found so much documentation as to what to do next, that
> I'm confused.

Start here: http://www.git-scm.com/documentation ("Tutorials" section).
The recently published http://progit.org/book/ can be also recommended.

> Do I have to create an account on github in order to share code with
> a few local developers?

No.

> Could I run some sort of server on my laptop in order to share code?

Yes. You don't have to, though.

> (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.

Look for fetch, push, and patches in the tutorials.

> How do I work this?

Patiently.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to host a github?
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Jakub Narebski @ 2009-07-29  9:31 UTC (permalink / raw)
  To: jvsrvcs; +Cc: git

jvsrvcs <jvsrvcs@gmail.com> writes:

> 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.

Read "Git User's Manual" (should be distributed with Git), check out
"Git Community Book" (http://book.git-scm.com).

More links at:
  http://git.or.cz/gitwiki/GitDocumentation
  http://git-scm.com/documentation

Some links here might also help:
  http://git.or.cz/gitwiki/BlogPosts

> 
> Do I have to create an account on github in order to share code with
> a few local developers?

No, you don't have to do that.
 
> 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?

References about hosting git repositories, etc.:
* http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#sharing-development
  "Git User's Manual", Chapter 4. Sharing development with others
* http://book.git-scm.com/4_setting_up_a_public_repository.html
  http://book.git-scm.com/4_setting_up_a_private_repository.html
  "Git Community Book", Setting up Public/Private Repository
* My answers to similar questions at StackOverflow:
  http://stackoverflow.com/questions/978052/githow-can-i-make-my-local-repository-available-for-git-pull/978417#978417
  http://stackoverflow.com/questions/1173101/do-i-need-a-server-to-use-git/1173623#1173623

References about Git on Windows:
  http://www.lostechies.com/blogs/jason_meridth/archive/2009/06/01/git-for-windows-developers-git-series-part-1.aspx
  http://gitster.livejournal.com/24080.html (msysGit, not Cygwin)

-- 
Jakub Narebski
Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to host a github?
  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
  2 siblings, 0 replies; 4+ messages in thread
From: daicoden @ 2009-09-19 21:01 UTC (permalink / raw)
  To: git




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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-09-19 21:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).