You are here

How to set up a public git repo

If you have an account on Stallman, you can now set up a public git repo that shows up on our gitweb setup!

Here's how. This assumes you already have a git repo at ~/example/.git and want to make a public repo called example.git.

  1. Create a "git" directory in your home folder.
  2. Give it universal read and search permissions (chmod a+rx ~/git). As in the web space, your home directory must have a+x permissions.
  3. Clone your old repo (NOTE: This instruction has been changed, since the first way I posted was overly complicated.)
    git clone --bare ~/example ~/git/example.git
    cd ~/git/example.git
    git config core.sharedRepository all
  4. With just this, it will show up in gitweb within 15 minutes. To make it so it can be cloned by http, do the following in ~/git/example.git.
    • git update-server-info
    • Make sure that there is a file hooks/post-update that is executable. There may be a file called hooks/post-update.example. If so, rename that to post-update.

If you need help, please email meinwald [dot] 1 [at] osu [dot] edu (Matt).

Browse current git repos.