{"id":156805,"date":"2019-09-12T08:36:02","date_gmt":"2019-09-12T00:36:02","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=156805"},"modified":"2019-08-26T09:37:13","modified_gmt":"2019-08-26T01:37:13","slug":"play-git-installation","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/play-git-installation.html","title":{"rendered":"\u6559\u4f60\u73a9\u8f6cGit-\u5b89\u88c5"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nGit \u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u7528\u4e8e\u654f\u6377\u9ad8\u6548\u5730\u5904\u7406\u4efb\u4f55\u6216\u5c0f\u6216\u5927\u7684\u9879\u76ee\u3002Git \u662f Linus Torvalds \u4e3a\u4e86\u5e2e\u52a9\u7ba1\u7406 Linux \u5185\u6838\u5f00\u53d1\u800c\u5f00\u53d1\u7684\u4e00\u4e2a\u5f00\u653e\u6e90\u7801\u7684\u7248\u672c\u63a7\u5236\u8f6f\u4ef6\u3002Git \u4e0e\u5e38\u7528\u7684\u7248\u672c\u63a7\u5236\u5de5\u5177 CVS, Subversion \u7b49\u4e0d\u540c\uff0c\u5b83\u91c7\u7528\u4e86\u5206\u5e03\u5f0f\u7248\u672c\u5e93\u7684\u65b9\u5f0f\uff0c\u4e0d\u5fc5\u670d\u52a1\u5668\u7aef\u8f6f\u4ef6\u652f\u6301\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

Debian\/Ubuntu Git \u5b89\u88c5\u547d\u4ee4\u4e3a\uff1a<\/strong><\/div>\n
\r\n$ apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \\\r\n  libz-dev libssl-dev\r\n$ apt-get install git\r\n$ git --version\r\ngit version 1.8.1.2\r\n<\/pre>\n
Centos\/RedHat Git\u5b89\u88c5\u547d\u4ee4:<\/strong><\/div>\n
\r\n$ yum install curl-devel expat-devel gettext-devel \\\r\n  openssl-devel zlib-devel\r\n$ yum -y install git-core\r\n$ git --version\r\ngit version 1.7.1<\/pre>\n
\u6e90\u7801\u5b89\u88c5\uff1a<\/strong><\/div>\n
\r\n########## Centos\/RedHat ##########\r\n$ yum install curl-devel expat-devel gettext-devel \\\r\n  openssl-devel zlib-devel\r\n########## Debian\/Ubuntu ##########\r\n$ apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \\\r\n  libz-dev libssl-dev\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

$ apt-get install libcurl4-gnutls-dev libexpat1-dev get […]<\/p>\n","protected":false},"author":1481,"featured_media":156809,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-156805","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/156805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1481"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=156805"}],"version-history":[{"count":6,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/156805\/revisions"}],"predecessor-version":[{"id":156827,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/156805\/revisions\/156827"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/156809"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=156805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=156805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=156805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}