Questions tagged [git-annex]

git-annex allows managing files with Git, without checking the file contents into Git. While that may seem paradoxical, it is useful when dealing with files larger than Git can currently easily handle, whether due to limitations in memory, time, or disk space.

Git-annex is an alternative to ; both systems work by replacing the files that are to be managed by, but not stored in, Git with "link" files. Git then manages the link file instead of the actual data. The actual data for each commit must be stored independently somewhere. The interesting choices here are the "somewhere", how and when the versioned-outside-Git files are synchronized, and how the system itself ( or ) comes up with names for each versioned file.

The host site for git-annex is https://git-annex.branchable.com/

62 questions
78
votes
2 answers

How do Git LFS and git-annex differ?

git-annex has been around for quite some time, but never really gained momentum. Git LFS is rather young and is already supported by GitHub, Bitbucket and GitLab. Both tools handle binary files in git repositories. On the other hand, GitLab seems to…
Stefanus
  • 1,619
  • 3
  • 12
  • 23
16
votes
2 answers

Possible to run git-annex on windows?

Is it somehow possible to run git-annex on windows?
Cambiata
  • 3,705
  • 9
  • 35
  • 45
13
votes
1 answer

Migrate from LFS to annex

In a moment of delirium before a deadline, I added a large (> 100 MB) binary to a repository with remotes on private hosts as well as github. Of course, github complained, and naively trusting their suggestion, I opted to use LFS. After two or three…
askewchan
  • 45,161
  • 17
  • 118
  • 134
13
votes
1 answer

Does Git LFS support local or "near" secondary storage/cache?

I'd like to know if it's possible to minimize the download times of large files when using Git LFS. specifically, the following scenarios: keep files when switching branches allow to get files from a different repository in the same network -…
Ophir Yoktan
  • 8,149
  • 7
  • 58
  • 106
13
votes
4 answers

Remove git-annex repository from file tree

I tried installing git-annex yesterday to backup my files. I ran git annex add . in the root of my repository tree and then a git commit. So far everything is fine. What I didn't know git-annex was doing was turning my entire file tree into a…
sffc
  • 6,186
  • 3
  • 44
  • 68
11
votes
1 answer

git annex / ssh : ControlPath too long

when running the command : git annex sync, I get the following error: ControlPath too long Command ssh ["-S","/.git/annex/ssh/git@","-o","ControlMaster=auto","-o","ControlPersist=yes","git@","git-annex-shell…
Vince
  • 3,979
  • 10
  • 41
  • 69
10
votes
2 answers

How to define an alternative remote url for a git remote repository?

I'm using git-annex to manage my files. Some of my remotes are available using 2 or 3 methods, for example ssh and nfs, but the nfs access is only possible on my local network, of course. Then, git-annex chooses the fastest method to sync or get the…
user556433
7
votes
2 answers

Does GitLab support large files via git-annex or otherwise?

I run a GitLab instance and would like to allow my users to upload files of almost any size. It is well-known that git still has problems with large files. I am aware of approaches to circumvent this issue by storing the files somewhere else and…
6
votes
2 answers

What is a good workflow for git-annex?

Our development team has been using git for version control and using git-annex to store large binary files (data-binaries, images, test-binaries etc). Although we have been able to set it up and use it, we have had our set of troubles. A common…
sanchitarora
  • 882
  • 9
  • 18
6
votes
0 answers

Transitioning git repos to submodules inside git-annex?

For a while I've been using Dropbox with ~/Documents symlinked inside, which includes several git repos, so I have been indulging in the frowned-upon practice of synchronising the same git repos across machines, instead of push/pulling. I'd like to…
rnkn
  • 495
  • 3
  • 13
4
votes
1 answer

Large file support: Normal files and git annex files in the same repo on windows? git add fails with fatal: This operation must be run in a work tree

I have a question about using git annex in windows. How can I have both, files tracked by git annex (large binaries that I don't want git to add to the repo) and other source code files that I want to add to the git repo, in the same repository if…
saraf
  • 530
  • 7
  • 22
4
votes
2 answers

Git Annex with GitHub?

I'm not very familiar with git-annex. I've just been reading the documentation trying to get my mind around it. The thought that has come to my mind, which I can't find certainty of is: Could I host a git repo on GitHub, and git push to it with git…
rygo6
  • 1,929
  • 22
  • 30
4
votes
1 answer

Syncing Uncommited Changes Between Computers

During the day I work with multiple computers a latop and two desktops. Currently I keep all my repositories in my dropbox folder (I don't push pull to dropbox) so I can keep my uncommited changes synced between machines. I want to drop dropbox in…
Hamza Yerlikaya
  • 49,047
  • 44
  • 147
  • 241
3
votes
1 answer

How does bup (git-based image backup) computes hashes of stored objects

There is bup backup program (https://github.com/bup/bup) based on some ideas and some functions from git version control system for compact storage of virtual machine images. In bup there is bup ls subcommand, which can show some sha1-like hashes…
osgx
  • 90,338
  • 53
  • 357
  • 513
3
votes
2 answers

Can we add git-annex to GitLab CE?

I know GitLab EE supports git-annex. However, us being a small team (of 2), plus lower cost projects, we're using GitLab CE in self hosted environment. Now facing problems with big binary files and images, we're starting to look for a solution. If…
Dragunov
  • 975
  • 1
  • 7
  • 14
1
2 3 4 5