This will sound really basic to some, but I'm overwhelmed. I need to make a portable version of git for Linux such that a program could run /path/to/folder/git
successfully. I assume git
has dependencies such that if all I put in the folder was that file, some features wouldn't work.
I found the Linux download page with a link to the latest tarball: git-2.40.0.tar.gz; I've no idea what to do next. I'm guessing there's some compiling to do (how?). I can work with either a Mac or Windows machine.
PS: It's not important that I compile from source if there is an easier but safe way to get the portable folder for Linux git.
Adding Context in case it matters
I actually need the executable in a zip file, within a /bin
folder. This is because it will be uploaded to AWS as a Lambda layer. There's a project that did exactly this, but is using an old version of git (see layers.zip
in this git repo folder)
As for the relevant Linux version, Amazon says:
you must compile and build these libraries using a Linux development machine so that the binaries are compatible with Amazon Linux