public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Orlitzky <michael@orlitzky.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] {OT} open-source: chat, tasks, resources, code
Date: Mon, 17 Dec 2012 20:12:33 -0500	[thread overview]
Message-ID: <50CFC301.4090200@orlitzky.com> (raw)
In-Reply-To: <CAN0CFw3fUnHR65MnkTFRNtPn4APHAQ-6iHnZ8XRH_AF5i5wpog@mail.gmail.com>

On 12/17/2012 07:56 PM, Grant wrote:
> 
>> If all you need to do is host git repositories, I suggest putting bare
>> repos on a server somewhere and having everyone push/pull over SSH. You
>> can use the bare-bones gitweb (comes with git in portage) to view the
>> repos from a web browser. You'll need a separate bug tracking mechanism
>> in that case.
> 
> I haven't used git before at all.  Is this pretty easy to set up?
> 

If your users all have SSH access to some server, you don't have to do
anything at all. Git works by pushing and pulling from other
repositories. Those repos may reside on a friend's machine, or a server
somewhere; conceptually, it doesn't matter[1].

So, for example, I have a git repo for my reapply_default_acl project in
~/src. I can clone this somewhere else by doing,

  $ mkdir -p tmp/acl
  $ cd tmp/acl/
  $ git clone ~/src/reapply_default_acl
  Cloning into 'reapply_default_acl'...
  done.

that easy. To do it over SSH is identical. I can connect to my own
machine via SSH for another example:

  $ rm -rf reapply_default_acl
  $ $ git clone ssh://mjo@localhost:443/~/src/reapply_default_acl
  Cloning into 'reapply_default_acl'...
  Password:
  remote: Counting objects: 102, done.
  remote: Compressing objects: 100% (85/85), done.
  remote: Total 102 (delta 34), reused 3 (delta 0)
  Receiving objects: 100% (102/102), 33.86 KiB, done.
  Resolving deltas: 100% (34/34), done.

That's all that's involved. You give people "commit access" by allowing
them to write to the directory.


[1] This is a slight lie. If you're going to have a centralized repo
that you only push to, you'll want to do two things. First, create the
server repo with `git init --bare` so that you don't have an extra copy
of checked-out files lying around. Second, go into the 'hooks' folder of
the server repo and rename the post-update.sample file to post-update.


  parent reply	other threads:[~2012-12-18  1:13 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-17  7:26 [gentoo-user] {OT} open-source: chat, tasks, resources, code Grant
2012-12-17 16:13 ` Michael Orlitzky
2012-12-17 17:05   ` Michele Beltrame
2012-12-17 23:48     ` Michael Orlitzky
2012-12-18  0:56   ` Grant
2012-12-18  1:06     ` Michael Mol
2012-12-18  2:10       ` Kevin Brandstatter
2012-12-18  2:33         ` Grant
2012-12-18  2:52           ` Kevin Brandstatter
2012-12-18  1:11     ` Alan McKinnon
2012-12-18  2:04       ` Grant
2012-12-18 11:30         ` Marc Joliet
2012-12-18 11:46           ` Michael Mol
2012-12-18 12:50           ` Alan McKinnon
2012-12-18 14:57             ` Marc Joliet
2012-12-19 20:14               ` Grant
2012-12-19 20:29                 ` Michael Mol
2012-12-20 21:02                   ` Grant
2012-12-20 21:27                     ` Alan McKinnon
2012-12-20 21:28                     ` Michael Mol
2012-12-20 21:32                       ` Grant
2012-12-20 21:42                         ` Michael Mol
2012-12-18  1:12     ` Michael Orlitzky [this message]
2012-12-18  1:59       ` Grant
2012-12-18  2:21         ` Michael Orlitzky
2012-12-17 17:08 ` Kevin Brandstatter
2012-12-18  1:02   ` Grant
2012-12-18 11:21 ` Ciprian Dorin Craciun

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=50CFC301.4090200@orlitzky.com \
    --to=michael@orlitzky.com \
    --cc=gentoo-user@lists.gentoo.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