File: New_user_misunderstandings.mdwn

package info (click to toggle)
git-annex 7.20190129-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 56,292 kB
  • sloc: haskell: 59,105; sh: 1,255; makefile: 225; perl: 136; ansic: 44
file content (24 lines) | stat: -rw-r--r-- 722 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
New user? Can't figure out the basics? Add it here - what you wanted, what you tried.

#### I wanted to keep track of some files I had all organized in a directory outside of my ~/annex:

    $ cd ~/annex
    $ git annex add /path/to/some/photos
    fatal: '/path/to/some/photos' is outside repository

 But git-annex doesn't work that way. I had to do this instead

    $ rsync -a /path/to/some/photos
    $ git annex add photos
    (Recording state in git...)
    $ git annex status
    ... lots of helpful info...

#### I just have the OS/X app, can I do commandline stuff?

yes

    $ /Applications/git-annex.app/Contents/MacOS/git-annex add photos/
    (Recording state in git...)

but perhaps there is a better way.