Problem: I don't have admin access on all the computers I want to plug my USB with git-annex on. Solution: Make git & git-annex portable.
The only catch is I'm not familiar enough with git to be able to actually tell if the more specialized git-annex working properly. The commands execute without crashing so I suspect it's fine but I was hoping someone else more competent could try this out and let me know if I it's working so I can add it to the tips section. Thanks in advance!
Ingredients:
Portable version of msysgit: http://code.google.com/p/msysgit/downloads/list
Windows git-annex installer: http://git-annex.branchable.com/install/
7-zip (portable version optional): http://portableapps.com/apps/utilities/7-zip_portable
Steps:
Use 7-zip to extract the contents of the git-annex installer into their own folder.
Extract the portable version of git and copy all files extracted from git-annex installer into the "cmd" folder.
Run it!
Edit: the markdown is eating my attempts to create a numbered list and making them a paragraph instead. Apologies!
Seems windows version of git-annex only runs in direct mode so I got the dreaded "fatal: this operation must be run in a work tree" error. Ran "git config core.bare false" which fixed it.
More info on direct mode: http://git-annex.branchable.com/direct_mode/
Correction to above. Don't run that command, just use git annex sync instead.
Also, git annex drop gives just a blank line. Maybe it doesn't work in direct mode either?