by Evan Moses » Fri Jun 29, 2012 7:21 pm
Hey, so while I was hoping git would just be installed, I managed to get it working to manage my website anyway.
First I downloaded the source zip from github (the easiest way I found was to lynx
https://github.com/git/, search for "Zip", and download it somewhere. Ignore the cert warnings).
Then, unzip the source, and do
Code: Select all
$mkdir ~/bin [if you don't already have a ~/bin directory]
$make NO_NSEC="YesPlease" NO_OPENSSL="YesPlease" NO_CURL="YesPlease" NO_PERL="YesPlease"
$make install NO_NSEC="YesPlease" NO_OPENSSL="YesPlease" NO_CURL="YesPlease" NO_PERL="YesPlease"
You have to turn off all those options because of the old versions of various dependencies on the Sonic shell. This will install the basic git tools to your ~/bin directory by default.
Finally, if you want to use git push via ssh successfully (and I'll assume you do), you need to create a file called .ssh/environment, and it's contents should be
Code: Select all
PATH=/usr/local/bin:/bin:/usr/bin:/home/<letter>/<username>/bin
Where <letter> and <username> make the absolute path for your home directory. This is because non-interactive logins run sh instead of bash, and the minimal environment doesn't set your PATH to include your home directory's bin. Happy gitting.