{"id":56221,"date":"2024-10-10T09:46:17","date_gmt":"2024-10-10T01:46:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/56221\/"},"modified":"2024-10-10T09:46:17","modified_gmt":"2024-10-10T01:46:17","slug":"wordpress-%e6%95%99%e7%a8%8b%ef%bc%9a%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-github-%e9%80%b2%e8%a1%8c-wordpress-%e9%96%8b%e7%99%bc","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/56221\/","title":{"rendered":"WordPress \u6559\u7a0b\uff1a\u5982\u4f55\u4f7f\u7528 GitHub \u9032\u884c WordPress \u958b\u767c"},"content":{"rendered":"<h1 id=\"wordpress-%e6%95%99%e7%a8%8b%ef%bc%9a%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-github-%e9%80%b2%e8%a1%8c-wordpress-%e9%96%8b%e7%99%bc-gqGCPtZOcs\">WordPress \u6559\u7a0b\uff1a\u5982\u4f55\u4f7f\u7528 GitHub \u9032\u884c WordPress \u958b\u767c<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u7db2\u9801\u958b\u767c\u74b0\u5883\u4e2d\uff0c\u7248\u672c\u63a7\u5236\u7cfb\u7d71\u5df2\u6210\u70ba\u958b\u767c\u8005\u4e0d\u53ef\u6216\u7f3a\u7684\u5de5\u5177\u3002GitHub \u4f5c\u70ba\u6700\u6d41\u884c\u7684\u7248\u672c\u63a7\u5236\u5e73\u53f0\u4e4b\u4e00\uff0c\u70ba\u958b\u767c\u8005\u63d0\u4f9b\u4e86\u5f37\u5927\u7684\u529f\u80fd\uff0c\u7279\u5225\u662f\u5728 WordPress \u958b\u767c\u4e2d\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u4f7f\u7528 GitHub \u9032\u884c WordPress \u958b\u767c\uff0c\u5e6b\u52a9\u958b\u767c\u8005\u66f4\u6709\u6548\u5730\u7ba1\u7406\u548c\u5354\u4f5c\u3002<\/p>\n<h2 id=\"%e7%82%ba%e4%bb%80%e9%ba%bc%e9%81%b8%e6%93%87-github%ef%bc%9f-gqGCPtZOcs\">\u70ba\u4ec0\u9ebc\u9078\u64c7 GitHub\uff1f<\/h2>\n<p>GitHub \u63d0\u4f9b\u4e86\u591a\u7a2e\u529f\u80fd\uff0c\u4f7f\u5176\u6210\u70ba WordPress \u958b\u767c\u7684\u7406\u60f3\u9078\u64c7\uff1a<\/p>\n<ul>\n<li><strong>\u7248\u672c\u63a7\u5236\uff1a<\/strong>GitHub \u5141\u8a31\u958b\u767c\u8005\u8ffd\u8e64\u4ee3\u78bc\u7684\u8b8a\u66f4\uff0c\u96a8\u6642\u56de\u9000\u5230\u5148\u524d\u7684\u7248\u672c\u3002<\/li>\n<li><strong>\u5354\u4f5c\u529f\u80fd\uff1a<\/strong>\u591a\u4f4d\u958b\u767c\u8005\u53ef\u4ee5\u540c\u6642\u5728\u540c\u4e00\u5c08\u6848\u4e0a\u5de5\u4f5c\uff0c\u4e26\u901a\u904e Pull Request \u9032\u884c\u4ee3\u78bc\u5be9\u67e5\u3002<\/li>\n<li><strong>\u793e\u7fa4\u652f\u6301\uff1a<\/strong>GitHub \u64c1\u6709\u9f90\u5927\u7684\u958b\u767c\u8005\u793e\u7fa4\uff0c\u958b\u767c\u8005\u53ef\u4ee5\u8f15\u9b06\u627e\u5230\u8cc7\u6e90\u548c\u89e3\u6c7a\u65b9\u6848\u3002<\/li>\n<\/ul>\n<h2 id=\"%e8%a8%ad%e7%bd%ae-github-%e7%92%b0%e5%a2%83-gqGCPtZOcs\">\u8a2d\u7f6e GitHub \u74b0\u5883<\/h2>\n<p>\u5728\u958b\u59cb\u4f7f\u7528 GitHub \u9032\u884c WordPress \u958b\u767c\u4e4b\u524d\uff0c\u60a8\u9700\u8981\u5b8c\u6210\u4ee5\u4e0b\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e5%89%b5%e5%bb%ba-github-%e5%b8%b3%e6%88%b6-gqGCPtZOcs\">1. \u5275\u5efa GitHub \u5e33\u6236<\/h3>\n<p>\u5982\u679c\u60a8\u9084\u6c92\u6709 GitHub \u5e33\u6236\uff0c\u8acb\u524d\u5f80 <a href=\"https:\/\/github.com\" rel=\"nofollow noopener\" target=\"_blank\">GitHub \u5b98\u65b9\u7db2\u7ad9<\/a> \u8a3b\u518a\u4e00\u500b\u514d\u8cbb\u5e33\u6236\u3002<\/p>\n<h3 id=\"2-%e5%ae%89%e8%a3%9d-git-gqGCPtZOcs\">2. \u5b89\u88dd Git<\/h3>\n<p>\u5728\u60a8\u7684\u672c\u5730\u958b\u767c\u74b0\u5883\u4e2d\u5b89\u88dd Git\u3002\u60a8\u53ef\u4ee5\u5f9e <a href=\"https:\/\/git-scm.com\" rel=\"nofollow noopener\" target=\"_blank\">Git \u5b98\u65b9\u7db2\u7ad9<\/a> \u4e0b\u8f09\u4e26\u5b89\u88dd\u9069\u5408\u60a8\u64cd\u4f5c\u7cfb\u7d71\u7684\u7248\u672c\u3002<\/p>\n<h3 id=\"3-%e5%89%b5%e5%bb%ba%e6%96%b0%e7%9a%84-github-%e5%84%b2%e5%ad%98%e5%ba%ab-gqGCPtZOcs\">3. \u5275\u5efa\u65b0\u7684 GitHub \u5132\u5b58\u5eab<\/h3>\n<p>\u767b\u9304\u5230\u60a8\u7684 GitHub \u5e33\u6236\uff0c\u9ede\u64ca\u53f3\u4e0a\u89d2\u7684 &#8220;+&#8221; \u6309\u9215\uff0c\u9078\u64c7 &#8220;New repository&#8221;\u3002\u586b\u5beb\u5132\u5b58\u5eab\u540d\u7a31\u548c\u63cf\u8ff0\uff0c\u7136\u5f8c\u9ede\u64ca &#8220;Create repository&#8221;\u3002<\/p>\n<h2 id=\"%e5%b0%87-wordpress-%e5%b0%88%e6%a1%88%e6%8e%a8%e9%80%81%e5%88%b0-github-gqGCPtZOcs\">\u5c07 WordPress \u5c08\u6848\u63a8\u9001\u5230 GitHub<\/h2>\n<p>\u63a5\u4e0b\u4f86\uff0c\u60a8\u9700\u8981\u5c07\u672c\u5730\u7684 WordPress \u5c08\u6848\u63a8\u9001\u5230 GitHub \u5132\u5b58\u5eab\uff1a<\/p>\n<h3 id=\"1-%e5%88%9d%e5%a7%8b%e5%8c%96-git-gqGCPtZOcs\">1. \u521d\u59cb\u5316 Git<\/h3>\n<pre><code>cd \/path\/to\/your\/wordpress\ngit init<\/code><\/pre>\n<h3 id=\"2-%e6%b7%bb%e5%8a%a0%e9%81%a0%e7%ab%af%e5%84%b2%e5%ad%98%e5%ba%ab-gqGCPtZOcs\">2. \u6dfb\u52a0\u9060\u7aef\u5132\u5b58\u5eab<\/h3>\n<pre><code>git remote add origin https:\/\/github.com\/username\/repository.git<\/code><\/pre>\n<h3 id=\"3-%e6%b7%bb%e5%8a%a0%e5%92%8c%e6%8f%90%e4%ba%a4%e6%96%87%e4%bb%b6-gqGCPtZOcs\">3. \u6dfb\u52a0\u548c\u63d0\u4ea4\u6587\u4ef6<\/h3>\n<pre><code>git add .\ngit commit -m \"Initial commit\"<\/code><\/pre>\n<h3 id=\"4-%e6%8e%a8%e9%80%81%e5%88%b0-github-gqGCPtZOcs\">4. \u63a8\u9001\u5230 GitHub<\/h3>\n<pre><code>git push -u origin master<\/code><\/pre>\n<h2 id=\"%e4%bd%bf%e7%94%a8-github-%e9%80%b2%e8%a1%8c%e5%8d%94%e4%bd%9c%e9%96%8b%e7%99%bc-gqGCPtZOcs\">\u4f7f\u7528 GitHub \u9032\u884c\u5354\u4f5c\u958b\u767c<\/h2>\n<p>\u7576\u60a8\u8207\u5176\u4ed6\u958b\u767c\u8005\u5408\u4f5c\u6642\uff0cGitHub \u7684\u5354\u4f5c\u529f\u80fd\u5c07\u975e\u5e38\u6709\u7528\uff1a<\/p>\n<h3 id=\"1-fork-%e5%92%8c-clone-gqGCPtZOcs\">1. Fork \u548c Clone<\/h3>\n<p>\u5982\u679c\u60a8\u60f3\u8981\u8ca2\u737b\u5230\u5176\u4ed6\u4eba\u7684\u5c08\u6848\uff0c\u53ef\u4ee5\u4f7f\u7528 Fork \u529f\u80fd\u4f86\u5275\u5efa\u8a72\u5c08\u6848\u7684\u526f\u672c\uff0c\u7136\u5f8c\u9032\u884c\u4fee\u6539\u3002\u5b8c\u6210\u5f8c\uff0c\u60a8\u53ef\u4ee5\u63d0\u4ea4 Pull Request\u3002<\/p>\n<h3 id=\"2-pull-request-gqGCPtZOcs\">2. Pull Request<\/h3>\n<p>\u7576\u60a8\u5b8c\u6210\u4fee\u6539\u5f8c\uff0c\u53ef\u4ee5\u5275\u5efa Pull Request\uff0c\u8acb\u6c42\u539f\u5c08\u6848\u7684\u64c1\u6709\u8005\u5408\u4f75\u60a8\u7684\u66f4\u6539\u3002\u9019\u6a23\u53ef\u4ee5\u4fc3\u9032\u4ee3\u78bc\u5be9\u67e5\u548c\u8a0e\u8ad6\u3002<\/p>\n<h3 id=\"3-issues-%e5%92%8c-projects-gqGCPtZOcs\">3. Issues \u548c Projects<\/h3>\n<p>\u4f7f\u7528 GitHub \u7684 Issues \u529f\u80fd\u4f86\u8ffd\u8e64\u932f\u8aa4\u548c\u529f\u80fd\u8acb\u6c42\uff0c\u4e26\u5229\u7528 Projects \u529f\u80fd\u4f86\u7ba1\u7406\u958b\u767c\u9032\u5ea6\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-gqGCPtZOcs\">\u7e3d\u7d50<\/h2>\n<p>\u4f7f\u7528 GitHub \u9032\u884c WordPress \u958b\u767c\u4e0d\u50c5\u80fd\u63d0\u9ad8\u4ee3\u78bc\u7ba1\u7406\u7684\u6548\u7387\uff0c\u9084\u80fd\u4fc3\u9032\u5718\u968a\u5354\u4f5c\u3002\u900f\u904e\u7248\u672c\u63a7\u5236\u548c\u793e\u7fa4\u652f\u6301\uff0c\u958b\u767c\u8005\u80fd\u5920\u66f4\u8f15\u9b06\u5730\u61c9\u5c0d\u5404\u7a2e\u6311\u6230\u3002\u82e5\u60a8\u9700\u8981\u7a69\u5b9a\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u4f86\u90e8\u7f72\u60a8\u7684 WordPress \u5c08\u6848\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u9069\u5408\u4e0d\u540c\u9700\u6c42\u7684\u7528\u6236\u3002\u7121\u8ad6\u662f\u500b\u4eba\u535a\u5ba2\u9084\u662f\u4f01\u696d\u7db2\u7ad9\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u5c07\u6709\u52a9\u65bc\u63d0\u5347\u7db2\u7ad9\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b78\u7fd2\u5982\u4f55\u4f7f\u7528 GitHub \u9032\u884c WordPress \u958b\u767c\uff0c\u638c\u63e1\u7248\u672c\u63a7\u5236\u3001\u5354\u4f5c\u6280\u5de7\uff0c\u63d0\u5347\u958b\u767c\u6548\u7387\uff0c\u9069\u5408\u6240\u6709\u6280\u8853\u6c34\u5e73\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-56221","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/56221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=56221"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/56221\/revisions"}],"predecessor-version":[{"id":56222,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/56221\/revisions\/56222"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=56221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=56221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=56221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}