Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to configure a migrated git repository in gitolite

Tags:

git

gitolite

I have the gitolite and currently created test repositories and configured user rights and all works fine.

What I want now is I have migrated a cvs repository to git by using git cvsimport. I have the newly migrated repository. How I can configure this repository via gitolite and configure users for this repository?

Kindly guide me in right directions!!

like image 999
thillaiselvan Avatar asked Apr 27 '12 05:04

thillaiselvan


People also ask

How do I clone Gitolite?

Run git clone git@server:gitolite-admin . Obtain pubkeys from each user; email, USB, DHL, pigeon post, owl mail, any method you like. Rename each received file to the name of the user, add a ". pub" at the end, copy it into keydir/ in the gitolite-admin repo you cloned.

How do you use Gitolite?

Set up the gitolite environment on the git server This command ssh to the git server as root and does the follows. First, as root, create the user for hosting git. Then, as the git user, clone the gitolite from github, install it to ~/bin/ and set up the gitolite. And the gitolite git server is set up successfully.


Video Answer


1 Answers

You need to clone the gitoite-adin repo, and declare a new repo:
See "adding and removing repos"

Once done, you would add to your exisintg local git repo (the one with the CVS import in it) a new remote:

git remote add gitolite git@server:to

(you can name the remote origin if you want)

And then you would push your local repo to the gitolite-managed one:

git push gitolite master # to initialize the remote repo with master branch
git push gitolite --all # to push all branches
git push gitolite --tags # to push all tags

(git push --all as mentioned in "With GitHub how do I push all branches when adding an existing repo?")

like image 91
VonC Avatar answered Sep 21 '22 17:09

VonC