-
Notifications
You must be signed in to change notification settings - Fork 7
/
annex.txt
46 lines (40 loc) · 1.07 KB
/
annex.txt
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
.git/annex/objects
init .
add file // git commit symlink
whereis file
get file // symlink -> content
drop file // content -> symlink
--from origin
move file --from origin --to origin
copy file --from origin --to origin
--auto // only if not yet annex.numcopies copies
numcopies 3 // min # copies
unused // show unused files
# change file
unlock file // unlock for edit; un-symlink file
add file
commit
push
# undirectional client -> server
## server
mkdir repo; cd repo
git init .
git-annex init .
## client
git remote add server server:~/path
git push server master:sync/master // creates branch sync/master on server
## server
git merge sync/master
## client
gita copy --to server file // copies file to server
# direct mode
* allows direct editing of files
* for sync two repositories
* no file history
* most git commands do not work anymore
direct // activate
indirect // deactivate
add file // add changed files with git-annex
sync // sync from source with remote repositories; git remote add still works
sync // sync in target rep
get file // get files in target rep