{"id":19123,"date":"2024-11-19T08:16:02","date_gmt":"2024-11-19T00:16:02","guid":{"rendered":"https:\/\/fwq.ai\/blog\/19123\/"},"modified":"2024-11-19T08:16:02","modified_gmt":"2024-11-19T00:16:02","slug":"centos-6-5-%e6%80%8e%e4%b9%88%e5%ae%89%e8%a3%85git","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/19123\/","title":{"rendered":"centos 6.5 \u600e\u4e48\u5b89\u88c5git"},"content":{"rendered":"<p>git \u662f\u6700\u6d41\u884c\u7684\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u4e4b\u4e00\uff0c\u662f\u8bb8\u591a\u5f00\u53d1\u4eba\u5458\u4f7f\u7528\u7684\u5fc5\u5907\u5de5\u5177\u3002git \u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u56e2\u961f\u66f4\u597d\u5730\u7ba1\u7406\u4ee3\u7801\uff0c\u5e76\u80fd\u591f\u8ffd\u8e2a\u66f4\u6539\u4ee5\u53ca\u534f\u8c03\u7248\u672c\u4e4b\u95f4\u7684\u5dee\u5f02\u3002\u5bf9\u4e8e\u4e00\u4e9b\u4eba\u6765\u8bf4\uff0c\u5728centos 6.5\u4e0a\u5b89\u88c5 git \u53ef\u80fd\u6709\u4e9b\u68d8\u624b\uff0c\u4f46\u4e8b\u5b9e\u4e0a\u5b83\u76f8\u5f53\u7b80\u5355\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u901a\u8fc7 yum \u5305\u7ba1\u7406\u5668\u5728 CentOS 6.5 \u4e0a\u5b89\u88c5 Git \u7684\u6b65\u9aa4:<\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a\u68c0\u67e5\u4f9d\u8d56\u9879<\/strong><\/p>\n<p>\u4f7f\u7528yum\u5305\u7ba1\u7406\u5668\u53ef\u4ee5\u68c0\u67e5 git\u548c git-core \u5305\u7684\u4f9d\u8d56\u5173\u7cfb\uff1a<\/p>\n<pre>sudo yum check-update<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p><strong>\u6b65\u9aa4 2\uff1a\u5b89\u88c5Git<\/strong><\/p>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u5b89\u88c5 Git \u548c Git\u6838\u5fc3\u8f6f\u4ef6\u5305\uff1a<\/p>\n<pre>sudo yum install git git-core<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5982\u679c\u60a8\u7684\u7cfb\u7edf\u9700\u8981\u67d0\u4e9b\u4f9d\u8d56\u9879\uff0c\u5219 yum \u5305\u7ba1\u7406\u5668\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u548c\u5b89\u88c5\u5b83\u4eec\u3002<\/p>\n<p><strong>\u6b65\u9aa4 3\uff1a\u9a8c\u8bc1Git\u7684\u5b89\u88c5<\/strong><\/p>\n<p>\u73b0\u5728\uff0c\u60a8\u53ef\u4ee5\u68c0\u67e5 Git \u662f\u5426\u5df2\u6b63\u786e\u5b89\u88c5\u3002\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u9a8c\u8bc1\u5b89\u88c5\uff1a<\/p>\n<pre>git --version<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5982\u679c Git \u5df2\u6210\u529f\u5b89\u88c5\uff0c\u5219\u5e94\u8be5\u80fd\u591f\u770b\u5230 Git \u7684\u7248\u672c\u4fe1\u606f\u3002<\/p>\n<p><strong>\u6b65\u9aa4 4\uff1a\u914d\u7f6e Git<\/strong><\/p>\n<p>\u5728\u4f7f\u7528 Git \u4e4b\u524d\uff0c\u60a8\u9700\u8981\u8bbe\u7f6e\u60a8\u7684\u7528\u6237\u540d\u548c\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u914d\u7f6e\uff1a<\/p>\n<pre>git config --global user.name \"Your Name\"\ngit config --global user.email \"youremail@domain.com\"<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u73b0\u5728\uff0c\u60a8\u5df2\u7ecf\u53ef\u4ee5\u5728 CentOS 6.5 \u4e0a\u5b89\u88c5\u548c\u914d\u7f6e Git \u4e86\u3002Git\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u80fd\u5e2e\u52a9\u60a8\u7ba1\u7406\u548c\u8ffd\u8e2a\u4ee3\u7801\u7684\u66f4\u6539\u3002\u65e0\u8bba\u662f\u4e2a\u4eba\u9879\u76ee\u8fd8\u662f\u5927\u578b\u56e2\u961f\u5408\u4f5c\uff0cGit \u90fd\u53ef\u4ee5\u4e3a\u9879\u76ee\u7ba1\u7406\u5e26\u6765\u5de8\u5927\u7684\u597d\u5904\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fcentos 6.5 \u600e\u4e48\u5b89\u88c5git\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>git \u662f\u6700\u6d41\u884c\u7684\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u4e4b\u4e00\uff0c\u662f\u8bb8\u591a\u5f00\u53d1\u4eba\u5458\u4f7f\u7528\u7684\u5fc5\u5907\u5de5\u5177\u3002git \u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u56e2\u961f\u66f4\u597d\u5730\u7ba1\u7406\u4ee3\u7801\uff0c\u5e76\u80fd\u591f\u8ffd\u8e2a\u66f4\u6539\u4ee5\u53ca\u534f\u8c03\u7248\u672c\u4e4b\u95f4\u7684\u5dee\u5f02\u3002\u5bf9\u4e8e\u4e00\u4e9b\u4eba\u6765\u8bf4\uff0c\u5728centos 6.5\u4e0a\u5b89\u88c5 git \u53ef\u80fd\u6709\u4e9b\u68d8\u624b\uff0c\u4f46\u4e8b\u5b9e\u4e0a\u5b83\u76f8\u5f53\u7b80\u5355\u3002 \u4ee5\u4e0b\u662f\u901a\u8fc7 yum \u5305\u7ba1\u7406\u5668\u5728 CentOS 6.5 \u4e0a\u5b89\u88c5 Git \u7684\u6b65\u9aa4: \u6b65\u9aa4 1\uff1a\u68c0\u67e5\u4f9d\u8d56\u9879 \u4f7f\u7528yum\u5305\u7ba1\u7406\u5668\u53ef\u4ee5\u68c0\u67e5 git\u548c git-core \u5305\u7684\u4f9d\u8d56\u5173\u7cfb\uff1a sudo yum check-update \u767b\u5f55\u540e\u590d\u5236 \u6b65\u9aa4 2\uff1a\u5b89\u88c5Git \u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u5b89\u88c5 Git \u548c Git\u6838\u5fc3\u8f6f\u4ef6\u5305\uff1a sudo yum install git git-core \u767b\u5f55\u540e\u590d\u5236 \u5982\u679c\u60a8\u7684\u7cfb\u7edf\u9700\u8981\u67d0\u4e9b\u4f9d\u8d56\u9879\uff0c\u5219 yum \u5305\u7ba1\u7406\u5668\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u548c\u5b89\u88c5\u5b83\u4eec\u3002 \u6b65\u9aa4 3\uff1a\u9a8c\u8bc1Git\u7684\u5b89\u88c5 \u73b0\u5728\uff0c\u60a8\u53ef\u4ee5\u68c0\u67e5 Git \u662f\u5426\u5df2\u6b63\u786e\u5b89\u88c5\u3002\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u9a8c\u8bc1\u5b89\u88c5\uff1a git &#8211;version \u767b\u5f55\u540e\u590d\u5236 \u5982\u679c Git \u5df2\u6210\u529f\u5b89\u88c5\uff0c\u5219\u5e94\u8be5\u80fd\u591f\u770b\u5230 Git \u7684\u7248\u672c\u4fe1\u606f\u3002 \u6b65\u9aa4 4\uff1a\u914d\u7f6e Git [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-19123","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19123","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=19123"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19123\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=19123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=19123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=19123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}