web commit by http://madduck.myopenid.com/: alternate git setup suggestion.
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Wed, 3 Oct 2007 18:45:12 +0000 (18:45 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Wed, 3 Oct 2007 18:45:12 +0000 (18:45 +0000)
doc/setup/discussion.mdwn

index 16e88601e02fcfc09d0287c583c65c9dd8fec8b5..101ca74dfe4f01f0db7c312a3889b3b84a3ed3d6 100644 (file)
@@ -47,7 +47,24 @@ simpler? --[[Joey]]
        cd $SRCDIR
        echo /.ikiwiki > .gitignore
        mv $SRCDIR.old/* $SRCDIR.old/.* .
-       rmdir $SRDDIR.old
+       rmdir $SRCDIR.old
        git add .
        git commit -m "initial commit"
-       git push
+       git push $REPOSITORY master
+
+[[madduck]]: I'd say this instead:
+
+       mkdir $REPOSITORY
+       cd $REPOSITORY
+       git --bare init --shared
+       mv $SRCDIR $SRCDIR.old
+       cd $SRCDIR
+       git init
+       echo /.ikiwiki > .gitignore
+       mv $SRCDIR.old/* $SRCDIR.old/.* .
+       rmdir $SRCDIR.old
+       git add .
+       git commit -m "initial commit"
+       git remote add origin $REPOSITORY
+       git config branch.master.merge refs/heads/master
+       git push --all
\ No newline at end of file