9.8.16

Git without the full binary

This is a super easy way to run / install git : JGit.  Its cross platform, no perl deps, no complex hierarchy of needs.    This isn't obviously a complete replacement for git, but it is a great way to put a lightweight git executable into something(i.e. like a container) where you need to run some simple git commands.   Many builds / applications that developers use/need nowadays  just "assume" git is installed, but not all systems have it set up, nor do most builds/apps need the full fledged "real" git.

grab the jgit self-contained executable 

curl -o git.sh https://repo.eclipse.org/content/groups/releases//org/eclipse/jgit/org.eclipse.jgit.pgm/4.4.1.201607150455-r/org.eclipse.jgit.pgm-4.4.1.201607150455-r.sh

chmod it

chmod 755 git.sh

kick butt 

mv git.sh /bin/git

No comments:

Post a Comment