aboutsummaryrefslogtreecommitdiff
path: root/doc/forum/Using_git-annex.mdwn
blob: 0e2be4e81b3a360d138753981855ea5528eeea15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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?