{"id":1100,"date":"2015-02-19T23:37:25","date_gmt":"2015-02-19T22:37:25","guid":{"rendered":"http:\/\/hesmid.nl\/test\/?p=1100"},"modified":"2015-05-06T23:59:22","modified_gmt":"2015-05-06T21:59:22","slug":"install-git-on-a-shared-host","status":"publish","type":"post","link":"https:\/\/hesmid.nl\/test\/install-git-on-a-shared-host\/","title":{"rendered":"Install Git on a shared host"},"content":{"rendered":"<p><a href=\"http:\/\/www.stumiller.me\/installing-git-version-control-on-a-shared-hosting-provider\/\">This<\/a>\u00a0solution worked for me:<\/p>\n<ul>\n<li>ssh into your server<\/li>\n<li>Create directory &#8216;src&#8217; and cd into it:<\/li>\n<\/ul>\n<pre lang=\"bash\">cd\r\nmkdir src\r\ncd src\r\n<\/pre>\n<ul>\n<li>Download and unpack the latest version of git. You van find the latest releases here:\u00a0https:\/\/github.com\/git\/git\/releases<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<pre lang=\"bash\">curl -LO https:\/\/github.com\/git\/git\/archive\/v.2.3.0.tar.gz<\/pre>\n<pre lang=\"bash\">tar zxvf\u00a0v.2.3.0.tar.gz<\/pre>\n<pre lang=\"bash\">cd git-2.3.0<\/pre>\n<ul>\n<li>build a config file:<\/li>\n<\/ul>\n<pre lang=\"bash\">make configure\r\n<\/pre>\n<p>Now enter the following commands:<\/p>\n<pre lang=\"bash\">.\/configure --prefix=\/home\/$USER --with-curl --with-expat<\/pre>\n<pre lang=\"bash\">make -i<\/pre>\n<pre lang=\"bash\">make -i install<\/pre>\n<pre lang=\"bash\">echo 'PATH=$PATH:$HOME\/bin' &gt;&gt; $HOME\/.bashrc<\/pre>\n<pre lang=\"bash\">source $HOME\/.bashrc<\/pre>\n<p>you should now be able to run git version and be rewarded with &#8216;git version 2.3.0&#8217;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This\u00a0solution worked for me: ssh into your server Create directory &#8216;src&#8217; and cd into it: cd mkdir src cd src Download and unpack the latest version of git. You van find the latest releases here:\u00a0https:\/\/github.com\/git\/git\/releases<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7],"tags":[3,5,96],"acf":[],"_links":{"self":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/1100"}],"collection":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/comments?post=1100"}],"version-history":[{"count":2,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/1100\/revisions"}],"predecessor-version":[{"id":1114,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/1100\/revisions\/1114"}],"wp:attachment":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/media?parent=1100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/categories?post=1100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/tags?post=1100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}