aboutsummaryrefslogtreecommitdiff
path: root/doc/bare_repositories.mdwn
diff options
context:
space:
mode:
authorGravatar https://www.google.com/accounts/o8/id?id=AItOawmraN_ldJplGunVGmnjjLN6jL9s9TrVMGE <var_Arnfjr@web>2012-10-22 17:34:33 +0000
committerGravatar admin <admin@branchable.com>2012-10-22 17:34:33 +0000
commit23ff98ea253192feb4fc3341918056acffdc824d (patch)
tree842aaac054ea08bb7881cc80b58e0230439186e8 /doc/bare_repositories.mdwn
parent88ea13994f23ec94ffa8dd0ecb5d1fc2042fac94 (diff)
No need for mkdir, make it simpler
Diffstat (limited to 'doc/bare_repositories.mdwn')
-rw-r--r--doc/bare_repositories.mdwn7
1 files changed, 2 insertions, 5 deletions
diff --git a/doc/bare_repositories.mdwn b/doc/bare_repositories.mdwn
index f40277d61..d6f3f8fdc 100644
--- a/doc/bare_repositories.mdwn
+++ b/doc/bare_repositories.mdwn
@@ -24,16 +24,13 @@ as non-bare repositories. Except for these caveats:
Here is a quick example of how to set this up, using `origin` as the remote name, and assuming `~/annex` contains an annex:
On the server:
-
- mkdir bare-annex
- cd bare-annex
- git init --bare
+ git init --bare bare-annex.git
git annex init origin
Now configure the remote and do the initial push:
cd ~/annex
- git remote add origin example.com:bare-annex
+ git remote add origin example.com:bare-annex.git
git push origin master git-annex
Now `git annex status` should show the configured bare remote. If it does not, you may have to pull from the remote first (older versions of `git-annex`)