如何在gitolite中配置迁移的git仓库 [英] how to configure a migrated git repository in gitolite
问题描述
我拥有gitolite,并且目前已经创建了测试版本库和已配置的用户权限,并且所有工作都正常。
现在我想要的是我已经通过使用git cvsimport将cvs存储库迁移到了git。我有新迁移的存储库。我如何通过gitolite配置此存储库并为此存储库配置用户?
请引导我在正确的方向!
您需要克隆gitoite-adin回购协议,并声明新的回购协议:
请参阅 添加和删除回购站
完成后,您将添加到您的exisintg本地git仓库(其中包含CVS导入仓库)中的新仓库: c> git remote add gitolite git @ server:to
(如果您想要,您可以命名远程原点)
然后你将你的本地仓库推到gitolite托管的仓库:
git push gitolite master#用主分支初始化远程repo
git push gitolite --all#推送所有分支
git push gitolite --tags#推送所有标签
( git push --all
使用GitHub时,如何在添加现有内容时推送所有分支回购?)
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!!
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?")
这篇关于如何在gitolite中配置迁移的git仓库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!