{"id":52244,"date":"2024-12-03T11:12:14","date_gmt":"2024-12-03T03:12:14","guid":{"rendered":"https:\/\/fwq.ai\/blog\/52244\/"},"modified":"2024-12-03T11:12:14","modified_gmt":"2024-12-03T03:12:14","slug":"git%e6%9c%89%e6%b2%a1%e6%9c%89linux%e7%89%88%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/52244\/","title":{"rendered":"git\u6709\u6ca1\u6709linux\u7248\u672c"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>git\u6709\u6ca1\u6709linux\u7248\u672c<\/h1>\n<p>\u79ef\u7d2f\u77e5\u8bc6\uff0c\u80dc\u8fc7\u79ef\u84c4\u91d1\u94f6\uff01\u6bd5\u7adf\u5728\u6587\u7ae0\u5f00\u53d1\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u9047\u5230\u5404\u79cd\u5404\u6837\u7684\u95ee\u9898\uff0c\u5f80\u5f80\u90fd\u662f\u4e00\u4e9b\u7ec6\u8282\u77e5\u8bc6\u70b9\u8fd8\u6ca1\u6709\u638c\u63e1\u597d\u800c\u5bfc\u81f4\u7684\uff0c\u56e0\u6b64\u57fa\u7840\u77e5\u8bc6\u70b9\u7684\u79ef\u7d2f\u662f\u5f88\u91cd\u8981\u7684\u3002\u4e0b\u9762\u672c\u6587\u300agit\u6709\u6ca1\u6709linux\u7248\u672c\u300b\uff0c\u5c31\u5e26\u5927\u5bb6\u8bb2\u89e3\u4e00\u4e0b\u77e5\u8bc6\u70b9\uff0c\u82e5\u662f\u4f60\u5bf9\u672c\u6587\u611f\u5174\u8da3\uff0c\u6216\u8005\u662f\u60f3\u641e\u61c2\u5176\u4e2d\u67d0\u4e2a\u77e5\u8bc6\u70b9\uff0c\u5c31\u8bf7\u4f60\u7ee7\u7eed\u5f80\u4e0b\u770b\u5427~<\/p>\n<\/p>\n<blockquote>\n<p>git\u6709linux\u7248\u672c\u7684\u3002Git\u672c\u6765\u5c31\u662fLinux\u4e4b\u7236Linus Torvalds\u4e8e2005\u5e74\u5f00\u53d1\u7684\u7528\u4e8e\u5e2e\u52a9\u7ba1\u7406Linux\u5185\u6838\u5f00\u53d1\u7684\u5f00\u6e90\u7248\u672c\u63a7\u5236\u8f6f\u4ef6\uff1b\u5b83\u91c7\u7528\u4e86\u5206\u5e03\u5f0f\u7248\u672c\u5e93\u7684\u65b9\u5f0f\uff0c\u4e0d\u5fc5\u670d\u52a1\u5668\u7aef\u8f6f\u4ef6\u652f\u6301\uff0c\u4f7f\u6e90\u4ee3\u7801\u7684\u53d1\u5e03\u548c\u4ea4\u6d41\u6781\u5176\u65b9\u4fbf\u3002<\/p>\n<\/blockquote>\n<p><strong>git\u6709linux\u7248\u672c\u7684\u3002<\/strong><\/p>\n<p>Git \u662f Linux \u4e4b\u7236 Linus Torvalds \u4e8e2005\u5e74\u5f00\u53d1\u7684\u7528\u4e8e\u5e2e\u52a9\u7ba1\u7406 Linux \u5185\u6838\u5f00\u53d1\u7684\u5f00\u6e90\u7248\u672c\u63a7\u5236\u8f6f\u4ef6\u3002<\/p>\n<p>Git &#8212; The stupid content tracker, \u50bb\u74dc\u5185\u5bb9\u8ddf\u8e2a\u5668\u3002Linus Torvalds \u662f\u8fd9\u6837\u7ed9\u6211\u4eec\u4ecb\u7ecd Git \u7684\u3002<\/p>\n<p>Git \u662f\u7528\u4e8e Linux\u5185\u6838\u5f00\u53d1\u7684\u7248\u672c\u63a7\u5236\u5de5\u5177\u3002\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\uff08wingeddevil\u6ce8\uff1a\u8fd9\u5f97\u5206\u662f\u7528\u4ec0\u4e48\u6837\u7684\u670d\u52a1\u7aef\uff0c\u4f7f\u7528http\u534f\u8bae\u6216\u8005git\u534f\u8bae\u7b49\u4e0d\u592a\u4e00\u6837\u3002\u5e76\u4e14\u5728push\u548cpull\u7684\u65f6\u5019\u548c\u670d\u52a1\u5668\u7aef\u8fd8\u662f\u6709\u4ea4\u4e92\u7684\u3002\uff09\uff0c\u4f7f\u6e90\u4ee3\u7801\u7684\u53d1\u5e03\u548c\u4ea4\u6d41\u6781\u5176\u65b9\u4fbf\u3002 Git \u7684\u901f\u5ea6\u5f88\u5feb\uff0c\u8fd9\u5bf9\u4e8e\u8bf8\u5982 Linux kernel \u8fd9\u6837\u7684\u5927\u9879\u76ee\u6765\u8bf4\u81ea\u7136\u5f88\u91cd\u8981\u3002 Git \u6700\u4e3a\u51fa\u8272\u7684\u662f\u5b83\u7684\u5408\u5e76\u8ddf\u8e2a\uff08merge tracing\uff09\u80fd\u529b\u3002<\/p>\n<p><strong>Linux\u5b89\u88c5Git\u7684\u4e24\u79cd\u65b9\u5f0f<\/strong><\/p>\n<p><strong>\u51c6\u5907\u5de5\u4f5c<\/strong><\/p>\n<p>1\u3001\u9700\u8981\u51c6\u5907\u4e00\u53f0\u670d\u52a1\u5668\uff0c\u5927\u5bb6\u53ef\u4ee5\u5728\u7f51\u4e0a\u4e70\uff0c\u4e2a\u4eba\u5b66\u4e60\u7684\u8bdd\u8fd8\u662f\u5efa\u8bae\u5927\u5bb6\u53bb\u5b89\u88c5\u4e00\u4e2a\u865a\u62df\u673a\uff0c\u53bb\u88c5\u4e00\u4e2aLinux\u7cfb\u7edf\u3002\u5173\u952e\u5b57\u70b9\u51fb\u8df3\u8f6c\uff1a\u865a\u62df\u673a\u5b89\u88c5\u6559\u7a0b &nbsp; &nbsp;Linux\u5b89\u88c5\u6559\u7a0b<\/p>\n<p>2\u3001\u9700\u8981\u51c6\u5907\u4e00\u4e2a\u8fdc\u7a0b\u8fde\u63a5\u5de5\u5177\uff0c\u8fde\u63a5\u5230Linux\u7cfb\u7edf\uff0c\u4f5c\u8005\u91c7\u7528\u7684\u662f\uff1aXshell \u5de5\u5177 \uff08\u6ce8\u610f\uff1aXshell\u4e0b\u8f7d\u5730\u5740\u7ffb\u5230\u672c\u6587\u6700\u4e0b\u9762\uff09\u3002<\/p>\n<p>3\u3001Git\u662f\u76ee\u524d\u6d41\u884c\u7684\u975e\u5e38\u597d\u7528\u7684\u7248\u672c\u63a7\u5236\u5de5\u5177\uff0c\u8fd9\u91cc\u4ecb\u7ecd\u4e24\u79cd\u5b89\u88c5\u65b9\u5f0f\uff0c1\u3001yum\u5b89\u88c5\uff0c2\u3001\u4ecegithub\u4e0a\u4e0b\u8f7d\u6700\u65b0\u7684\u6e90\u7801\u7f16\u8bd1\u540e\u5b89\u88c5(\u6ce8\u610f\uff1a\u5982\u679c\u4e0d\u4f1a\u4e0b\u8f7d\u7ffb\u6700\u4e0b\u9762)<\/p>\n<p><strong>yun\u5b89\u88c5<\/strong><\/p>\n<p>1\u3001\u5728Linux\u4e0a\u662f\u6709yum\u5b89\u88c5Git\uff0c\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4e00\u884c\u547d\u4ee4<\/p>\n<pre>yum&nbsp;-y&nbsp;install&nbsp;git<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240418\/17134333536620eb095dcf7.jpg\" class=\"aligncenter\" title=\"git\u6709\u6ca1\u6709linux\u7248\u672c\u63d2\u56fe\" alt=\"git\u6709\u6ca1\u6709linux\u7248\u672c\u63d2\u56fe\" \/><\/p>\n<p>2\u3001\u8f93\u5165 git &#8211;version\u67e5\u770bGit\u662f\u5426\u5b89\u88c5\u5b8c\u6210\u4ee5\u53ca\u67e5\u770b\u5176\u7248\u672c\u53f7<\/p>\n<p><code><code><\/code><\/code><\/p>\n<pre><code><code>git&nbsp;--version<\/code><\/code><\/pre>\n<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240418\/17134333536620eb0961114.jpg\" class=\"aligncenter\" title=\"git\u6709\u6ca1\u6709linux\u7248\u672c\u63d2\u56fe1\" alt=\"git\u6709\u6ca1\u6709linux\u7248\u672c\u63d2\u56fe1\" \/><\/p>\n<p><strong>\u4eceGitHub\u4e0a\u4e0b\u8f7d\u6700\u65b0\u7684\u6e90\u7801\u7f16\u8bd1\u540e\u5b89\u88c5<\/strong><\/p>\n<p>\u6709\u4eba\u60f3\u95ee\uff0c\u76f4\u63a5\u5728\u7ebf\u5b89\u88c5\u591a\u4e48\u5bb9\u6613\uff0c\u4e3a\u5565\u8fd8\u4e0b\u8f7d\u5b89\u88c5\u5462\uff0c\u4f60\u4eec\u4e5f\u770b\u5230\u4e86\uff0c\u4e0a\u8ff0\u7684\u5b89\u88c5\u7248\u672c\u4e0d\u662fGit\u5b98\u65b9\u6700\u65b0\u7684\u5305\uff0c\u4e0b\u8f7d\u5305\u5b89\u88c5\u53ef\u4ee5\u9009\u7248\u672c\u3002<\/p>\n<p>1\u3001\u9996\u5148\u6211\u4eec\u9700\u8981\u5220\u9664\u65e7\u7684Git<\/p>\n<pre>yum&nbsp;-y&nbsp;remove&nbsp;git<\/pre>\n<p>2\u3001\u8fdb\u5165git\u5728GitHub\u4e0a\u53d1\u5e03\u7248\u672c\u9875\u9762https:\/\/github.com\/git\/git\/releases\uff0c\u8fd9\u4e2a\u9875\u9762\u6211\u4eec\u53ef\u4ee5\u627e\u5230\u6240\u6709git\u5df2\u53d1\u5e03\u7684\u7248\u672c\u3002\u8fd9\u91cc\u6211\u4eec\u9009\u62e9\u6700\u65b0\u7248\u7684tar.gz\u5305\u3002<\/p>\n<pre>https:\/\/github.com\/git\/git\/releases<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240418\/17134333536620eb096250a.jpg\" class=\"aligncenter\" title=\"git\u6709\u6ca1\u6709linux\u7248\u672c\u63d2\u56fe2\" alt=\"git\u6709\u6ca1\u6709linux\u7248\u672c\u63d2\u56fe2\" \/><\/p>\n<p>3\u3001\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684tar.gz\u7684Git\u5230\u672c\u5730\u7535\u8111\u4e0a\uff0c\u5229\u7528Xftp\u5de5\u5177\u5c06\u538b\u7f29\u5305\u4e0a\u4f20\u81f3Linux\u670d\u52a1\u5668\u7684\/usr\/local\u76ee\u5f55\u4e0b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240418\/17134333536620eb096777a.jpg\" class=\"aligncenter\" title=\"git\u6709\u6ca1\u6709linux\u7248\u672c\u63d2\u56fe3\" alt=\"git\u6709\u6ca1\u6709linux\u7248\u672c\u63d2\u56fe3\" \/><\/p>\n<p>4\u3001\u8fdb\u5165\/usr\/local \u76ee\u5f55\u89e3\u538bgit\u6587\u4ef6<\/p>\n<pre>tar&nbsp;-zxvf&nbsp;git-2.25.4.tar.gz<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240418\/17134333536620eb09692ff.jpg\" class=\"aligncenter\" title=\"git\u6709\u6ca1\u6709linux\u7248\u672c\u63d2\u56fe4\" alt=\"git\u6709\u6ca1\u6709linux\u7248\u672c\u63d2\u56fe4\" \/><\/p>\n<p>5\u3001\u62ff\u5230\u89e3\u538b\u540e\u7684\u6e90\u7801\u4ee5\u540e\u6211\u4eec\u9700\u8981\u7f16\u8bd1\u6e90\u7801\u4e86\uff0c\u4e0d\u8fc7\u5728\u6b64\u4e4b\u524d\u9700\u8981\u5b89\u88c5\u7f16\u8bd1\u6240\u9700\u8981\u7684\u4f9d\u8d56\u3002<\/p>\n<pre>yum&nbsp;install&nbsp;curl-devel&nbsp;expat-devel&nbsp;gettext-devel&nbsp;openssl-devel&nbsp;zlib-devel&nbsp;gcc&nbsp;perl-ExtUtils-MakeMaker<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240418\/17134333536620eb096a6f0.jpg\" class=\"aligncenter\" title=\"git\u6709\u6ca1\u6709linux\u7248\u672c\u63d2\u56fe5\" alt=\"git\u6709\u6ca1\u6709linux\u7248\u672c\u63d2\u56fe5\" \/><\/p>\n<p>6\u3001\u7f16\u8bd1git\u6e90\u7801\uff0c\u8fdb\u5165cd \/usr\/local\/git-2.25.4 \u76ee\u5f55<\/p>\n<pre>make&nbsp;prefix=\/usr\/local\/git&nbsp;all<\/pre>\n<p>7\u3001\u5b89\u88c5git\u81f3\/usr\/bin\/git\u8def\u5f84<\/p>\n<pre>make&nbsp;prefix=\/usr\/local\/git&nbsp;install<\/pre>\n<p>8\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<pre>vi&nbsp;\/etc\/profile<\/pre>\n<p>9\u3001\u5728\u5e95\u90e8\u52a0\u4e0a\u5982\u4e0b<\/p>\n<pre>export&nbsp;PATH=$PATH:\/usr\/bin\/git\/bin<\/pre>\n<p>10\u3001\u5237\u65b0\u73af\u5883\u53d8\u91cf<\/p>\n<pre>source&nbsp;\/etc\/profile<\/pre>\n<p>11\u3001\u67e5\u770bGit\u662f\u5426\u5b89\u88c5\u5b8c\u6210<\/p>\n<p><code><code><\/code><\/code><\/p>\n<pre><code><code>git&nbsp;--version<\/code><\/code><\/pre>\n<\/p>\n<p>\u7406\u8bba\u8981\u638c\u63e1\uff0c\u5b9e\u64cd\u4e0d\u80fd\u843d\uff01\u4ee5\u4e0a\u5173\u4e8e\u300agit\u6709\u6ca1\u6709linux\u7248\u672c\u300b\u7684\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u5927\u5bb6\u90fd\u638c\u63e1\u4e86\u5427\uff01\u5982\u679c\u60f3\u8981\u7ee7\u7eed\u63d0\u5347\u81ea\u5df1\u7684\u80fd\u529b\uff0c\u90a3\u4e48\u5c31\u6765\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\u5427\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>git\u6709\u6ca1\u6709linux\u7248\u672c \u79ef\u7d2f\u77e5\u8bc6\uff0c\u80dc\u8fc7\u79ef\u84c4\u91d1\u94f6\uff01\u6bd5\u7adf\u5728\u6587\u7ae0\u5f00\u53d1\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u9047\u5230\u5404\u79cd\u5404\u6837\u7684\u95ee\u9898\uff0c\u5f80\u5f80\u90fd\u662f\u4e00\u4e9b\u7ec6\u8282\u77e5\u8bc6\u70b9\u8fd8\u6ca1\u6709\u638c\u63e1\u597d\u800c\u5bfc\u81f4\u7684\uff0c\u56e0\u6b64\u57fa\u7840\u77e5\u8bc6\u70b9\u7684\u79ef\u7d2f\u662f\u5f88\u91cd\u8981\u7684\u3002\u4e0b\u9762\u672c\u6587\u300agit\u6709\u6ca1\u6709linux\u7248\u672c\u300b\uff0c\u5c31\u5e26\u5927\u5bb6\u8bb2\u89e3\u4e00\u4e0b\u77e5\u8bc6\u70b9\uff0c\u82e5\u662f\u4f60\u5bf9\u672c\u6587\u611f\u5174\u8da3\uff0c\u6216\u8005\u662f\u60f3\u641e\u61c2\u5176\u4e2d\u67d0\u4e2a\u77e5\u8bc6\u70b9\uff0c\u5c31\u8bf7\u4f60\u7ee7\u7eed\u5f80\u4e0b\u770b\u5427~ git\u6709linux\u7248\u672c\u7684\u3002Git\u672c\u6765\u5c31\u662fLinux\u4e4b\u7236Linus Torvalds\u4e8e2005\u5e74\u5f00\u53d1\u7684\u7528\u4e8e\u5e2e\u52a9\u7ba1\u7406Linux\u5185\u6838\u5f00\u53d1\u7684\u5f00\u6e90\u7248\u672c\u63a7\u5236\u8f6f\u4ef6\uff1b\u5b83\u91c7\u7528\u4e86\u5206\u5e03\u5f0f\u7248\u672c\u5e93\u7684\u65b9\u5f0f\uff0c\u4e0d\u5fc5\u670d\u52a1\u5668\u7aef\u8f6f\u4ef6\u652f\u6301\uff0c\u4f7f\u6e90\u4ee3\u7801\u7684\u53d1\u5e03\u548c\u4ea4\u6d41\u6781\u5176\u65b9\u4fbf\u3002 git\u6709linux\u7248\u672c\u7684\u3002 Git \u662f Linux \u4e4b\u7236 Linus Torvalds \u4e8e2005\u5e74\u5f00\u53d1\u7684\u7528\u4e8e\u5e2e\u52a9\u7ba1\u7406 Linux \u5185\u6838\u5f00\u53d1\u7684\u5f00\u6e90\u7248\u672c\u63a7\u5236\u8f6f\u4ef6\u3002 Git &#8212; The stupid content tracker, \u50bb\u74dc\u5185\u5bb9\u8ddf\u8e2a\u5668\u3002Linus Torvalds \u662f\u8fd9\u6837\u7ed9\u6211\u4eec\u4ecb\u7ecd Git \u7684\u3002 Git \u662f\u7528\u4e8e Linux\u5185\u6838\u5f00\u53d1\u7684\u7248\u672c\u63a7\u5236\u5de5\u5177\u3002\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\uff08wingeddevil\u6ce8\uff1a\u8fd9\u5f97\u5206\u662f\u7528\u4ec0\u4e48\u6837\u7684\u670d\u52a1\u7aef\uff0c\u4f7f\u7528http\u534f\u8bae\u6216\u8005git\u534f\u8bae\u7b49\u4e0d\u592a\u4e00\u6837\u3002\u5e76\u4e14\u5728push\u548cpull\u7684\u65f6\u5019\u548c\u670d\u52a1\u5668\u7aef\u8fd8\u662f\u6709\u4ea4\u4e92\u7684\u3002\uff09\uff0c\u4f7f\u6e90\u4ee3\u7801\u7684\u53d1\u5e03\u548c\u4ea4\u6d41\u6781\u5176\u65b9\u4fbf\u3002 Git \u7684\u901f\u5ea6\u5f88\u5feb\uff0c\u8fd9\u5bf9\u4e8e\u8bf8\u5982 Linux kernel \u8fd9\u6837\u7684\u5927\u9879\u76ee\u6765\u8bf4\u81ea\u7136\u5f88\u91cd\u8981\u3002 Git \u6700\u4e3a\u51fa\u8272\u7684\u662f\u5b83\u7684\u5408\u5e76\u8ddf\u8e2a\uff08merge tracing\uff09\u80fd\u529b\u3002 Linux\u5b89\u88c5Git\u7684\u4e24\u79cd\u65b9\u5f0f \u51c6\u5907\u5de5\u4f5c 1\u3001\u9700\u8981\u51c6\u5907\u4e00\u53f0\u670d\u52a1\u5668\uff0c\u5927\u5bb6\u53ef\u4ee5\u5728\u7f51\u4e0a\u4e70\uff0c\u4e2a\u4eba\u5b66\u4e60\u7684\u8bdd\u8fd8\u662f\u5efa\u8bae\u5927\u5bb6\u53bb\u5b89\u88c5\u4e00\u4e2a\u865a\u62df\u673a\uff0c\u53bb\u88c5\u4e00\u4e2aLinux\u7cfb\u7edf\u3002\u5173\u952e\u5b57\u70b9\u51fb\u8df3\u8f6c\uff1a\u865a\u62df\u673a\u5b89\u88c5\u6559\u7a0b &nbsp; &nbsp;Linux\u5b89\u88c5\u6559\u7a0b 2\u3001\u9700\u8981\u51c6\u5907\u4e00\u4e2a\u8fdc\u7a0b\u8fde\u63a5\u5de5\u5177\uff0c\u8fde\u63a5\u5230Linux\u7cfb\u7edf\uff0c\u4f5c\u8005\u91c7\u7528\u7684\u662f\uff1aXshell \u5de5\u5177 \uff08\u6ce8\u610f\uff1aXshell\u4e0b\u8f7d\u5730\u5740\u7ffb\u5230\u672c\u6587\u6700\u4e0b\u9762\uff09\u3002 3\u3001Git\u662f\u76ee\u524d\u6d41\u884c\u7684\u975e\u5e38\u597d\u7528\u7684\u7248\u672c\u63a7\u5236\u5de5\u5177\uff0c\u8fd9\u91cc\u4ecb\u7ecd\u4e24\u79cd\u5b89\u88c5\u65b9\u5f0f\uff0c1\u3001yum\u5b89\u88c5\uff0c2\u3001\u4ecegithub\u4e0a\u4e0b\u8f7d\u6700\u65b0\u7684\u6e90\u7801\u7f16\u8bd1\u540e\u5b89\u88c5(\u6ce8\u610f\uff1a\u5982\u679c\u4e0d\u4f1a\u4e0b\u8f7d\u7ffb\u6700\u4e0b\u9762) yun\u5b89\u88c5 1\u3001\u5728Linux\u4e0a\u662f\u6709yum\u5b89\u88c5Git\uff0c\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4e00\u884c\u547d\u4ee4 yum&nbsp;-y&nbsp;install&nbsp;git 2\u3001\u8f93\u5165 git &#8211;version\u67e5\u770bGit\u662f\u5426\u5b89\u88c5\u5b8c\u6210\u4ee5\u53ca\u67e5\u770b\u5176\u7248\u672c\u53f7 git&nbsp;&#8211;version [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-52244","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=52244"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52244\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=52244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=52244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=52244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}