how to configure a migrated git repository in gitolite

前端 未结 1 440
旧巷少年郎
旧巷少年郎 2021-02-10 11:35

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

相关标签:
1条回答
  • 2021-02-10 12:16

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

    0 讨论(0)
提交回复
热议问题