Skip to content

RobAMills/vagrant-centos65-x86_64-gitolite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

vagrant-centos65-x86_64-gitolite

vagrant recipe for installing gitolite server

Installation

$ git clone https://github.com/mattn/vagrant-centos65-x86_64-gitolite
$ cd vagrant-centos65-x86_64-gitolite
$ mkdir .vagrant
$ ssh-keygen -t rsa # generate if key doesn't already exist
$ cp /path/to/your/ssh/public/key/id_rsa.pub .vagrant/admin.pub
$ vagrant up

NOTE: filename of admin.pub should be <username>.pub for administrator.

Create gitolite repository

NOTE: At the first, remove line begining with [127.0.0.1]:2222 in ~/.ssh/known_hosts.

$ git clone ssh://gitolite@127.0.0.1:2222/gitolite-admin.git 
$ cd gitolite-admin
$ vi conf/gitolite.conf

Append two lines for new repository. See gitolite's README for description.

repo    gitolite-admin
        RW+     =   admin

repo    testing
        RW+     =   @all

repo    example
        RW+     =   @all
$ git commit -am "Add example" && git push
# git repos are in /var/lib/gitolite/repositories/

Use the repository

$ git clone ssh://gitolite@127.0.0.1:2222/example.git
$ cd example
$ echo ハァハァ > poem.txt
$ git add poem.txt && git commit -m 'First ハァハァ'
$ git push

Open http://127.0.0.1:4567/git in your browser.

Author

Yasuhiro Matsumoto (a.k.a mattn)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%