how to configure a migrated git repository in gitolite

懵懂的女人 提交于 2020-01-01 03:24:09

问题


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!!


回答1:


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?")



来源:https://stackoverflow.com/questions/10345026/how-to-configure-a-migrated-git-repository-in-gitolite

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!