You are not logged in.

#1 2009-07-29 01:20:28

passbe
Member
Registered: 2009-03-14
Posts: 74
Website

GIT Question + Rsync?

I am new to git. I am currently setting up a repository under /srv/repo/. Now the documentation is great, and i dont really have a problem setting any of this up (i think). However id like to make a copy of the repo avaliable online. This copy online will only allow users to checkout the project and view the contents.

I will be using webgit (the included web scripts), however my question is what is the best way to achieve this. I would be happy enough just to set an rsync job to sync the contents of the /srv/repo to git.example.com, or is there another way.

Id like to know your thoughts / opionons in this please.

Thanks
Passbe

Offline

#2 2009-07-29 02:30:54

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: GIT Question + Rsync?

i'd make it a bare repo (see git help clone) and use git+ssh to work with it.

Offline

#3 2009-07-29 20:29:40

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: GIT Question + Rsync?

Do you mean you need the file content only to be available without the revision history ?


English is not my native language .

Offline

#4 2009-07-29 21:34:27

passbe
Member
Registered: 2009-03-14
Posts: 74
Website

Re: GIT Question + Rsync?

No no, i would like the revision history. Just the git repository as readonly. So that my users can clone a branch or a revision.

Offline

#5 2009-07-29 22:39:52

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: GIT Question + Rsync?

you can use git-daemon, or you can use an alias in apache, or you can .... so many different ways you can do it.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

Board footer

Powered by FluxBB