git-annex is available for Android inside Termux or Nix-On-Droid. This includes the git-annex assistant, for easy syncing between your Android and other devices. You do not need to root your Android to use git-annex.
(Alternatively, rather than installing git-annex on your Android device,
git-annex can run on your computer and use adb to pull and push changes
to the Android device. See android sync with adb for instructions
on using git-annex that way.)
Installation (Termux)
See termux
Installation (Nix-On-Droid)
See Nix-On-Droid
If you are experiencing a problem using git-annex on Android, please examine the list of bugs and add a new, detailed bug report if no-one has reported the problem. If you are not sure if you have a bug, or need help in filing a good bug report, ask for help in the forum.
I have removeda lot of old comments about problems that may be fixed or not (hard to tell without a bug report!) This page cannot scale to handle every bug report that someone wants to paste into it.
This seems to download a html.
Thank you for reporting that, I have fixed the url.
I'd again like to ask that, if you have any kind of problem or bug with this Android build of git-annex, you open a bug report rather than posting a problem here.
It's not necessary to download
wgetin Termux since it already comes withcurl.However the installation guide instructs to install
wgetin order to fetch the installation scriptgit-annex-installfrom the internet. Also the script itself relies onwgetand installs it as a dependency even though the preinstalledcurlcould be used just as well.I think we should use
curlto reduce the amount of dependencies which have to be additionally installed.starting
git annex webappfails for me with (Android 12, CalyxOS):The webapp still runs and I can connect the browser by copypaste the link.
instead trying to open the browser natively i have a bit more success with Termux:API by
This seems to be the right thing to do, unfortunally for some unknown reason it fails sometimes too, but I think thats an issue within termux which may become fixed eventually.
I'm trying to use git-annex to manage music on my phone (surely a common-ish use case?), so I have a git-annex checkout under
/sdcard/Music/. It sort of works? I did a clone under there (I think, it was a few weeks ago), it seemed to check out my files okay and set e.g.core.symlinks = falseandannex.sshcaching = true. However, I keep getting warnings that I should rungit annex restageor that some git hook didn't run because it wasn't executable. I'm also now usinggit annex adjust --hide-missing --unlocksince I think locked files just don't work on exfat(?). Also, there's various characters that aren't supported that caused a lot of confusion when I was first setting it up... I think the Nix-on-Droid app-specific directory has a better filesystem, but I don't think my music player would be able to access that.Do folks have tips on using git-annex on Android? My suspicion is that because of the filesystem and maybe other things, there's a fair amount of details that don't apply to git-annex usage on a normal Linux machine, and I don't really understand Android, exfat, or git well enough to confidently compensate -- more of a howto or rundown of features/config that's likely to come up on Android would be really helpful for this page.
The Download with the git-annex-install script fail, I guess because the build is failed. see: https://downloads.kitenet.net/git-annex/autobuild/arm64-ancient/
It would be grate if you could fix that. Thanks in advance.