From 988934dec1b631d95fe9bc730182475b195edbd7 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Fri, 23 Jul 2010 16:11:44 +0530 Subject: [PATCH] (minor) admin doc change on moving existing repos into gitolite --- doc/2-admin.mkd | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/doc/2-admin.mkd b/doc/2-admin.mkd index 6c0b036..9b2a7be 100644 --- a/doc/2-admin.mkd +++ b/doc/2-admin.mkd @@ -66,12 +66,23 @@ Once you've cloned it, you're ready to add users and repos. #### moving pre-existing repos into gitolite One simple way to add a pre-existing repo to gitolite is to let gitolite -create it as a brand new repo as in the previous section, and then, from an -existing clone, "push --all" to the new one. +create it as a brand new repo as in the previous section, then do the +following: -However, if you have many existing repos to add, this can be time-consuming -and error-prone. Here's how to take a bunch of existing repos and add them to -gitolite: + cd your-copy-of-the-repo + # make sure all the branches are correct and no extra stuff, "temp" + # branches, etc., are present + git push --all git@server:reponame + git push --tags git@server:reponame + +(You could also use "git push --mirror" instead of separately doing branches +and tags, but that will carry across *your* remote refs also, and typically +you may not want that. Anyway please do a `git ls-remote git@server:repo` to +make sure all the stuff you want went through, and is named correctly). + +All this is actually very simple and easily done. However, if you have many +existing repos to add, this can be time-consuming and error-prone. Here's how +to take a bunch of existing repos and add them to gitolite: * make sure they're *bare* repos ;-)