git-annex use a file from a different location

My understanding is that when I perform git annex add somefile, it creates a symlink for that file and places it in the .git/annex/objects folder. Then, when I initialize git-annex in some different location and sync it with the previous one, it downloads a broken symlink, unless I do git annex sync --content, which makes a full copy of the file.

I need to have large files in one location, lets say on a USB Drive, and multiple git repositories that use the large files. So I want to have just the symlinks to the large files in those git repos. How to perform the sync so git-annex downloads a valid symlink that points to a file in a single location ?

  • Keep changes while doing a `git stash`
  • Multiple git editors
  • Organize a large Project with multi private cocoapods
  • git-p4 is eating my image files
  • git merge: how keep master version of file?
  • bash prompt coloring for Mac OS X
  • Recover files that were added to the index but then removed by a git reset
  • Can I specify Git URLs as dependencies in Buck?
  • How to merge remote master at two commits earlier than current local master
  • Git submodule's commit matching a tag in the main repo
  • In the context of git (and diff), what is a “hunk”
  • Getting 'git grep' to work effectively in vim
  • Git Baby is a git and github fan, let's start git clone.