From ae68052e87dad54b16a9878f98dd9a2207bb9cb1 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 23 Oct 2007 18:51:54 +0200 Subject: More details on creating public repository. --- README | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'README') diff --git a/README b/README index f94aedc..0ae879c 100644 --- a/README +++ b/README @@ -29,12 +29,18 @@ Pull it like this: git clone http://source.jones.dk/ikiwiki.git -To publish your own forked repository through web, you need to create a special -public repository that you "push" your changes into from your private working -repository (the --all option is rewuired only initially) - like this: +To publish your own forked repository through web, you first need to create a +special public repository that you "push" your changes into from your private +working repository - like this: GIT_DIR=public_dir/repository_name.git git --bare init --shared chmod +x public_dir/repository_name.git/hooks/post-update + +To actually use your newly created public repository as above, you first need +to populate it with your current working repository (the --all option is only +this once, not on subsequent pushes) - like this: + + git remote add origin git-reference-to-public-repository git push --all To resyncronize an older fork of the repository, re-applying local changes on -- cgit v1.2.3