diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-10-03 18:45:12 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-10-03 18:45:12 +0000 |
commit | 6a226b26c1b697ef0ba7353d6980a2acda1acb1f (patch) | |
tree | 23a792f6a612c016a72ab7f9fd153269db4a8ce9 | |
parent | 35ac8e865c2e4acf51677047f94bacdf300cf786 (diff) |
web commit by http://madduck.myopenid.com/: alternate git setup suggestion.
-rw-r--r-- | doc/setup/discussion.mdwn | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/doc/setup/discussion.mdwn b/doc/setup/discussion.mdwn index 16e88601e..101ca74df 100644 --- a/doc/setup/discussion.mdwn +++ b/doc/setup/discussion.mdwn @@ -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 |