summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar https://www.google.com/accounts/o8/id?id=AItOawktbkKjilg70XC9XBFpIgVhtfLYH-0UMHY <Tad@web>2014-10-27 21:31:40 +0000
committerGravatar admin <admin@branchable.com>2014-10-27 21:31:40 +0000
commit4fb2c3cd13f6fbd684c547d37c86ba448e6e3ec3 (patch)
tree11cd5a01417faf3bef2c7ff7e25db516bb9768c0 /doc
parent9cfea55130188273d35b765119ed819ff5003816 (diff)
Diffstat (limited to 'doc')
-rw-r--r--doc/forum/Using_git-annex.mdwn32
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/forum/Using_git-annex.mdwn b/doc/forum/Using_git-annex.mdwn
index e9f49adc5..0e2be4e81 100644
--- a/doc/forum/Using_git-annex.mdwn
+++ b/doc/forum/Using_git-annex.mdwn
@@ -2,40 +2,72 @@ Hi,
I have created a git annex repo, added data. I then went to check it out in another location in the following way (my goal is to checkout origin, add a test file, push it back to origin).
git clone ../test_repo/
+
282 17:19 cd test_repo/
+
283 17:19 ls
+
284 17:19 git status
+
285 17:22 git annex init DEV
+
286 17:22 touch test.txt
+
287 17:22 vi test.txt
+
288 17:22 git annex merge
+
289 17:22 git annex add test.txt
+
290 17:22 git commit -am "test"
+
291 17:23 git push origin master git-annex
However I am getting the following error
Counting objects: 3, done.
+
Delta compression using up to 48 threads.
+
Compressing objects: 100% (3/3), done.
+
Writing objects: 100% (3/3), 364 bytes | 0 bytes/s, done.
+
Total 3 (delta 1), reused 0 (delta 0)
+
remote: error: refusing to update checked out branch: refs/heads/master
+
remote: error: By default, updating the current branch in a non-bare repository
+
remote: error: is denied, because it will make the index and work tree inconsistent
+
remote: error: with what you pushed, and will require 'git reset --hard' to match
+
remote: error: the work tree to HEAD.
+
remote: error:
+
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to
+
remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into
+
remote: error: its current branch; however, this is not recommended unless you
+
remote: error: arranged to update its work tree to match what you pushed in some
+
remote: error: other way.
+
remote: error:
+
remote: error: To squelch this message and still keep the default behaviour, set
+
remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
+
To /test_repo/
+
! [remote rejected] master -> master (branch is currently checked out)
+
error: failed to push some refs to '/test_repo/'
+
What am I missing?