{"id":2591,"date":"2009-03-27T21:24:07","date_gmt":"2009-03-27T13:24:07","guid":{"rendered":"http:\/\/ihower.idv.tw\/blog\/?p=2591"},"modified":"2024-04-21T18:48:55","modified_gmt":"2024-04-21T10:48:55","slug":"git-part1-introduction","status":"publish","type":"post","link":"https:\/\/ihower.tw\/blog\/2591-git-part1-introduction","title":{"rendered":"Git \u7248\u672c\u63a7\u5236\u7cfb\u7d71 (1)"},"content":{"rendered":"<blockquote><p>\n  \u95dc\u65bc Git \u53ef\u4ee5\u53c3\u8003\u6211\u7684 <a href=\"https:\/\/ihower.tw\/git\/\">Git \u7248\u672c\u63a7\u5236<\/a> \u8ab2\u7a0b\u8cc7\u6599\n<\/p><\/blockquote>\n<p>\u81ea\u5f9e\u53bb\u5e74 Rails \u6539\u7528 <a href=\"\/blog\/archives\/1733\">Github<\/a> hosting \u4e4b\u5f8c\uff0c\u5c31\u60f3\u5b78 Git \u5f88\u4e45\u4e86(\u4e00\u76f4\u4ee5\u4f86\u90fd\u53ea\u6703\u50cf svn \u4e00\u6a23\u64cd\u4f5c add, rm commit, push, pull \u800c\u5df2\uff0c\u5982\u679c\u4f60\u7684\u7a0b\u5ea6\u4e5f\u662f\u5982\u6b64\uff0c\u5efa\u8b70\u4f60\u53ef\u4ee5\u518d\u591a\u5b78\u5b78)\u3002\u4eca\u5e74\u8a31\u4e0b\u7684\u7b2c\u4e00\u500b\u76ee\u6a19\u5c31\u662f\u8a8d\u771f\u5b78\u6703 Git\uff0c\u800c\u76f4\u5230\u4e0a\u500b\u6708<a href=\"http:\/\/handlino.com\">\u548c\u591a<\/a>\u958b\u59cb\u9678\u9678\u7e8c\u7e8c\u628a\u6240\u6709\u7684 svn repo. \u90fd\u63db\u6210 git\uff0c\u624d\u958b\u59cb\u975e\u5f97\u5929\u5929\u7528 git \u7684\u65e5\u5b50 :p<\/p>\n<p>Git \u662f\u7531 <a href=\"http:\/\/zh.wikipedia.org\/zh-tw\/%E6%9E%97%E7%BA%B3%E6%96%AF%C2%B7%E6%89%98%E7%93%A6%E5%85%B9\">Linus Torvalds<\/a>(Linux \u767c\u660e\u4eba\uff0c\u767c\u660e Git \u7684\u76ee\u7684\u4e4b\u4e00\u5c31\u662f\u7528\u4f86\u7ba1\u7406 Linux \u539f\u59cb\u78bc) \u767c\u5c55\u51fa\u4f86\u7684 content tracker \u7cfb\u7d71\uff0c\u5b83\u7684\u5167\u90e8\u8a2d\u8a08\u50cf\u662f\u6a94\u6848\u7cfb\u7d71\uff0c\u800c\u4e0d\u662f SCM \u7cfb\u7d71\uff0c\u96d6\u7136\u5b83\u6700\u4e3b\u8981\u7684\u7528\u8655\u662f\u62ff\u4f86\u505a DVCS\u3002<\/p>\n<p>\u9019\u88e1\u6700\u91cd\u8981\u7684\u7406\u89e3\u5c31\u662f\uff1a\u4ed6\u8ffd\u8e64\u7684\u662f\u8cc7\u6599\u5167\u5bb9\uff0c\u4e0d\u662f\u8a18\u9304\u7248\u672c\u9593\u7684\u5dee\u7570\u3002\u6240\u4ee5\u5373\u4f7f\u662f\u6539\u6a94\u540d\u6216\u662f\u5728\u4e0d\u540c\u7684 branch \u88e1\u9762\uff0c\u76f8\u540c\u7684\u5167\u5bb9\u4ecd\u7136\u53ea\u6703\u6709\u4e00\u4efd\u5be6\u9ad4\uff0c\u5176\u4ed6\u90fd\u662f\u5229\u7528 metadata \u5efa\u7acb reference \u95dc\u806f\u3002\u9019\u4e5f\u662f\u70ba\u4ec0\u9ebc\u5b83\u6bd4\u8d77 SVN \u53c8\u5feb\u53c8\u7701\u7a7a\u9593\u53c8\u6709\u6548\u7387\uff0c\u5206\u652f branch \u8ddf tag \u8d85\u5feb(\u53ea\u662f\u5efa\u7acb reference \u800c\u5df2)\uff0c\u800c\u4e14\u4e5f\u53ef\u4ee5\u6539\u6a94\u540d(\u5728 SVN \u8981\u522a\u9664\u518d\u65b0\u589e\uff0c\u771f\u662f sucks)\u3002<\/p>\n<p>\u56e0\u70ba Git \u6bd4\u8d77 SVN \u5be6\u5728\u5148\u9032\u591a\u4e86\uff0c\u9664\u4e86\u6bd4\u8f03\u96e3\u4e0a\u624b\u4e00\u4e9b\u4e4b\u5916\uff0c\u6211\u60f3\u9019\u5e7e\u5e74\u61c9\u8a72\u6703\u5927\u898f\u6a21\u7684\u53d6\u4ee3 SVN \u6210\u70ba\u65b0\u9738\u4e3b\u5427(<a href=\"http:\/\/zh-tw.whygitisbetterthanx.com\/\">Why Git is Better than X<\/a>)\uff0c\u5b83\u76ee\u524d\u6700\u5927\u7684\u7f3a\u9ede\u662f Windows \u4e0a\u7684\u652f\u63f4\u9084\u4e0d\u662f\u975e\u5e38\u6210\u719f\u3002\u5982\u679c\u60a8\u60f3\u770b\u770b\u5176\u4ed6\u9078\u64c7\uff0c\u807d\u8aaa <a href=\"http:\/\/www.selenic.com\/mercurial\/wiki\/\">Hg<\/a> \u9019\u5957 DVCS \u4e5f\u662f\u975e\u5e38\u4e0d\u932f (\u5feb\u628a SVN \u4e1f\u4e86\u5427)\u3002<\/p>\n<p>\u8a8d\u771f\u5b78\u6703\u4e86\u4e00\u5957\u5206\u6563\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7d71 DVCS\uff0c\u5c0d\u5c08\u6848\u958b\u767c\u771f\u662f\u5e6b\u52a9\u4e0d\u5c11\uff0c\u4ee5\u5f80\u6211\u6703\u5c0d branch \u611f\u5230\u5bb3\u6015\uff0c\u89ba\u5f97\u662f\u9ad8\u7d1a\u7684\u6280\u5de7\uff0c\u5b78\u6703 Git \u4e4b\u5f8c\u9019\u4ef6\u4e8b\u8b8a\u6210\u4e00\u500b\u975e\u5e38 easy \u7684\u958b\u767c\u6280\u5de7\uff0c\u4e0d\u50cf svn copy \u8ddf svn merge \u4ee4\u4eba\u6297\u62d2\u3002\u9019\u5c0d\u4e00\u500b\u5df2\u7d93\u5728\u4e0a production \u7684\u8edf\u9ad4\u4f86\u8aaa\u5e6b\u52a9\u6975\u5927\uff0c\u56e0\u70ba\u5fc5\u9700\u540c\u6642\u7dad\u8b77 stable \u7684\u7248\u672c\u53ea\u505a bug fixes\uff0c\u4ee5\u53ca\u6578\u500b development branch \u540c\u6642\u958b\u767c\u4e0d\u540c topic\/features\u3002<\/p>\n<p>\u53e6\u4e00\u597d\u8655\u662f\u5206\u6563\u5f0f SCM \u6709\u672c\u5730\u7aef Repo.\uff0c\u56e0\u6b64\u4e0d\u9700\u8981\u7db2\u8def\u5c31\u53ef\u4ee5 commit \u4e86\uff0c\u56e0\u6b64\u6709\u6642\u5019\u505a\u9ad8\u9435\u6216\u7b49\u8eca\u60f3\u5beb Code \u4e5f\u5c31\u4e0d\u9700\u8981\u7db2\u8def\u4e86\u3002\u800c\u4e14\u672c\u5730\u7aef Repo. \u770b log \u8d85\u5feb\u8d85\u65b9\u4fbf\uff0c\u770b SVN Log \u771f\u662f\u8d85\u7d1a\u75db\u82e6\u7684\u7db2\u8def\u5ef6\u9072\u3002\u53e6\u4e00\u500b\u6bd4\u8f03\u9032\u968e\u7684\u9577\u8655\u662f\uff1a<strong>\u53ea\u8981\u5728\u672c\u5730\u7aef\u9084\u6c92\u6709 Push \u5206\u4eab\u7d66\u5225\u4eba\uff0c\u4f60\u90fd\u53ef\u4ee5\u4fee\u6539 commit histroy<\/strong>\u3002\u9019\u662f\u975e\u5e38 powerful \u7684\u80fd\u529b\uff0c\u4f8b\u5982\u6211\u53ef\u4ee5\u53d6\u6d88\u524d\u4e00\u6b21\u6216\u4efb\u4e00\u6b21\u7684 commit\u3001\u8b8a\u66f4 commit \u9806\u5e8f\u3001\u79fb\u52d5 local branch \u7684\u5206\u652f\u9ede\u3001\u5c07\u6578\u500b commit \u5408\u4f75\u6210\u4e00\u500b\u3001\u5c07\u4e00\u500b commit \u6253\u6563\u6210\u6578\u500b\u7b49\u7b49\uff0c\u56e0\u6b64\u53ef\u4ee5\u5728\u672c\u5730\u7aef\u90fd\u78ba\u8a8d okay \u6e96\u5099\u597d\u624d Push \u5206\u4eab\u7d66\u5225\u4eba\u3002\u9019\u7a2e\u6d41\u7a0b\u6211\u81ea\u5df1\u4e5f\u5728\u8a66\u8457\u6539\u8b8a\uff0c\u4ee5\u5f80 svn \u7684\u7d93\u9a57\u6703\u8b93\u4f60\u7fd2\u6163\u4e00 commit \u5c31\u99ac\u4e0a push\uff0c\u4f46\u662f\u4f7f\u7528 git \u7684\u8a71\u5176\u5be6\u4e0d\u9700\u8981\u9019\u9ebc\u6025\u8457\u628a\u9084\u4e0d\u5b8c\u6574\u7684\u7a0b\u5f0f\u5206\u4eab\u51fa\u53bb\u3002<\/p>\n<p>\u6211\u7684\u4e3b\u8981\u6559\u6750\u7684\u662f <a href=\"http:\/\/www.pragprog.com\/titles\/tsgit\/pragmatic-version-control-using-git\">Pragmatic Version Control Using Git<\/a> \u4e00\u66f8\u548c <a href=\"https:\/\/peepcode.com\/products\/git-internals-pdf\">Git Internals PDF<\/a>\uff0c\u524d\u8005\u5f88\u5bb9\u6613\u95b1\u8b80\uff0c\u5f8c\u8005\u6bd4\u8f03\u6982\u62ec\u6027\u4e00\u4e9b\u751a\u81f3\u958b\u982d\u5c31\u5148\u4ecb\u7d39\u4e86\u5167\u90e8\u7684\u904b\u4f5c\u3002\u9664\u4e86<a href=\"http:\/\/www.kernel.org\/pub\/software\/scm\/git\/docs\/\">\u5b98\u65b9\u7684\u8aaa\u660e\u6587\u4ef6<\/a>\uff0c\u5176\u4ed6\u63a8\u85a6\u7684 Git \u5b78\u7fd2\u7db2\u9801\u6709\uff1a<\/p>\n<ul>\n<li><a href=\"http:\/\/git-scm.com\">git-scm.com<\/a><\/li>\n<li><a href=\"http:\/\/gitref.org\/\">gitref.org<\/a><\/li>\n<li><a href=\"http:\/\/gitimmersion.com\">gitimmersion.com<\/a><\/li>\n<li><a href=\"http:\/\/www.gitready.com\/\">www.gitready.com\/<\/a><\/li>\n<li><a href=\"http:\/\/gitcasts.com\/\">gitcasts.com\/<\/a><\/li>\n<li><a href=\"http:\/\/progit.org\/\">progit.org\/<\/a><\/li>\n<\/ul>\n<p>\u9664\u4e86\u5b89\u88dd Git command\uff0c\u4f7f\u7528 GUI \u8edf\u9ad4\u770b\u5206\u652f\u7dda\u5716\u53ef\u662f\u4f7f\u7528 Git \u7684\u6a02\u8da3\u4e4b\u4e00\u3002\u5176\u4e2d MAC \u4e0a\u7684 <a href=\"http:\/\/gitx.frim.nl\/\">GitX<\/a> \u8edf\u9ad4\u8d85\u7d1a\u63a8\u85a6\uff0c\u5167\u5efa\u7684\u5247\u6709 gitk \u548c git-gui\u3002<\/p>\n<h3>Setup<\/h3>\n<p>\u4f7f\u7528 Git \u7684\u7b2c\u4e00\u6b65\u662f\u52d9\u5fc5\u8a2d\u5b9a\u597d\u4f60\u7684\u540d\u5b50\u8ddfemail\uff0c\u8a72\u6a94\u6848\u6703\u5728 ~\/.gitconfig\uff0c\u53ef\u4ee5\u7528\u4ee5\u4e0b\u6307\u4ee4\u76f4\u63a5\u52a0\u5165\uff1a<\/p>\n<p><code><br \/>\ngit config --global user.name \"ihower\"<br \/>\ngit config --global user.email \"ihower@gmail.com\"<br \/>\n<\/code><\/p>\n<p>\u63a5\u8457\u662f\u5efa\u7acb repo.\uff0c\u6709\u5169\u7a2e\u65b9\u5f0f\uff1a<\/p>\n<p><code><br \/>\ngit init &lt;dir_name&gt; \u6703\u5728\u672c\u5730\u65b0\u5efa\u4e00\u500b repo.\u3002<br \/>\ngit clone &lt;remote_location&gt; \u6703\u5f9e\u9060\u7aef\u8907\u88fd\u4e00\u4efd repo \u56de\u4f86\u3002<br \/>\n<\/code><\/p>\n<p>\u4ee5\u4e0b\u4ecb\u7d39\u7684\u64cd\u4f5c\u90fd\u8ddf remote repo. \u6c92\u6709\u95dc\u4fc2\uff0c\u90fd\u53ea\u662f\u5728\u672c\u5730 repo. \u64cd\u4f5c\u3002(\u4f5c\u70ba\u4e00\u500b DVCS\uff0c\u672c\u5730\u7aef\u76ee\u9304\u5c31\u6703\u5305\u542b\u6240\u6709\u7684 commit \u7d00\u9304)<\/p>\n<h3>add, status, commit (working tree and staging area)<\/h3>\n<p>Working tree \u662f\u4f60\u7576\u4e0b\u7684\u5de5\u4f5c\u76ee\u9304\uff0c\u5c31\u50cf SVN checkout \u51fa\u4f86\u7684\u5de5\u4f5c\u76ee\u9304\u3002\u9019\u88e1\u8981\u7279\u5225\u5b78\u7fd2\u7684\u65b0\u6982\u5ff5\u662f Staging area\uff0c\u9019\u662f Git \u7368\u6709\u7684\u529f\u80fd\u3002\u5b83\u662f\u4e00\u584a\u66ab\u5b58\u7684 cached \u5340\u57df\uff0c\u7528\u4f86\u7d00\u9304\u4ec0\u9ebc\u662f\u4f60\u5f85\u6703\u8981 commit \u6a94\u6848\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/zh-tw.whygitisbetterthanx.com\/images\/index1.png\" \/><\/p>\n<p><code><br \/>\ngit add . \u52a0\u5165\u6240\u6709\u6a94\u6848\uff0c\u5305\u62ec\u6240\u6709\u9084\u6c92\u6709\u88ab\u8ffd\u8e64(untracked)\u7684\u6a94\u6848<br \/>\ngit add -i \u9032\u5165\u4e92\u52d5\u6a21\u5f0f\uff0c\u4f60\u751a\u81f3\u53ef\u4ee5\u53ea Add \u6a94\u6848\u88e1\u9762\u5176\u4e2d\u7684\u4e00\u6bb5\u7a0b\u5f0f\u78bc\u5230 staging area \u53bb(\u7a31\u4f5cpatch)<br \/>\ngit add -u \u53ea\u52a0\u66f4\u65b0\u7684\u6a94\u6848\uff0c\u4e0d\u52a0\u5165\u9084\u6c92\u6709\u8ffd\u8e64\u7684\u6a94\u6848 (\u8ddf git commit -a \u6db5\u84cb\u7684\u7bc4\u570d\u76f8\u540c)<br \/>\n<\/code><\/p>\n<p>\u4f7f\u7528 git add \u6703\u5c07\u6a94\u6848\u52a0\u5165 staging area \u4e2d\uff0c\u7279\u5225\u6ce8\u610f\u5230\u5f85\u6703\u7684 commit \u662f <strong>commit \u4f60\u57f7\u884c add \u6642\u7576\u4e0b\u7684\u6a94\u6848<\/strong>\uff0c\u800c\u4e0d\u662f\u6700\u5f8c\u7684\u7248\u672c\u3002(\u4e5f\u5c31\u662f\u5982\u679c\u4f60 add \u5b8c\u4e4b\u5f8c\u53c8\u518d\u6b21\u4fee\u6539\u540c\u500b\u6a94\u6848\uff0ccommit \u51fa\u53bb\u7684\u6a94\u6848\u662f\u7b2c\u4e8c\u6b21\u4fee\u6539\u524d\u7684\u7248\u672c)<\/p>\n<p>\u63a5\u8457\u4e5f\u662f\u6700\u5e38\u7528\u7684 git status\uff0c\u6703\u5217\u51fa\u4ee5\u4e0b\u72c0\u614b\uff1a<\/p>\n<ul>\n<li>Changed but not updated \u6709\u4fee\u6539\u4f46\u662f\u6c92\u6709\u52a0\u5165 staging area \u7684\u6a94\u6848<\/li>\n<li>Changes to be committed (staging area) \u5df2\u7d93\u52a0\u5165 staging area \u7684\u6a94\u6848<\/li>\n<li>Untracked \u9084\u6c92\u6709\u88ab\u8ffd\u8e64\u7684\u65b0\u6a94\u6848<\/li>\n<\/ul>\n<p>\u7136\u5f8c\u662f commit \u6307\u4ee4\uff0c\u6703\u628a Staging area \u88e1\u9762\u7684\u6771\u897f commit \u51fa\u53bb\uff1a<\/p>\n<p><code><br \/>\ngit commit -m \"blah\" \u5982\u679c\u6c92\u52a0 -m \u7684\u8a71, \u6703\u958b\u7de8\u8f2f\u5668\u8f38\u5165 commit log (\u53ef\u4ee5\u5728.gitconfig\u4e2d\u8a2d\u5b9a\u7de8\u8f2f\u5668)<br \/>\ngit commit -a -m \"foobar\" \u5168\u90e8\u4fee\u6539\u7684\u6a94\u6848\u90fd add \u5f8c commit \u51fa\u53bb (<strong>\u4e0d\u5305\u62ec untracked \u7684\u65b0\u6a94\u6848<\/strong>)<br \/>\ngit commit -v \u6703\u958b\u7de8\u8f2f\u5668\u52a0\u4e0a diff \u8a3b\u89e3<br \/>\n<\/code><\/p>\n<p>\u5176\u4ed6\u5e38\u898b\u64cd\u4f5c\u6709\uff1a<\/p>\n<p><code><br \/>\ngit rm foobar \u522a\u9664<br \/>\ngit mv old_file new_file \u6539\u6a94\u540d<br \/>\n<\/code><\/p>\n<p>Git \u6c92\u6709 git copy\uff0c\u56e0\u70ba\u65e2\u7136 Git \u4e0d\u662f track file, \u800c\u662f track content\uff0c\u6240\u4ee5\u7576\u4f60\u65b0\u5efa\u4e00\u500b\u6a94\u6848\u628a\u76f8\u540c\u5167\u5bb9\u8cbc\u4e0a\u53bb\uff0cGit \u6703\u77e5\u9053\u4f60\u8cbc\u4e0a\u53bb\u7684\u6771\u897f\u5f9e\u54ea\u88e1\u4f86\u7684\uff0c\u4e5f\u4e0d\u9700\u8981\u4f60\u544a\u8a34 Git \u4f60\u5728 copy\u3002<\/p>\n<p>\u4e5f\u56e0\u70ba\u591a\u4e86\u4e00\u5c64 staging area \u7684\u5b58\u5728\uff0c\u6240\u4ee5 diff \u7d30\u5206\u6210\u4e09\u7a2e<\/p>\n<p><code><br \/>\ngit diff \u662f\u6bd4\u8f03 working tree \u8ddf staging area<br \/>\ngit diff --cached \u662f\u6bd4\u8f03 staging area \u8ddf\u672c\u4f86\u7684 repo.<br \/>\ngit diff HEAD \u662f\u6bd4\u8f03 working tree \u8ddf\u672c\u4f86\u7684 repo.<br \/>\n<\/code><\/p>\n<p>\u5f8c\u5e7e\u7bc7\u9084\u6703\u63d0\u5230\u66f4\u591a\u5982\u4f55\u505a\u56de\u5fa9\u52d5\u4f5c\uff0c\u9019\u88e1\u5148\u4ecb\u7d39\u5169\u500b\u6307\u4ee4\uff1a<\/p>\n<p><code><br \/>\ngit reset HEAD filename \u6703\u5f9e staging area \u72c0\u614b\u56de\u5230 unstaging \u6216 untracked (\u6a94\u6848\u5167\u5bb9\u4e26\u4e0d\u6703\u6539\u8b8a)<br \/>\ngit checkout filename \u6703\u5f9e unstaging \u72c0\u614b\u56de\u5230\u6700\u521d repo. \u7684\u6a94\u6848(\u6a94\u6848\u5167\u5bb9\u8b8a\u56de\u4fee\u6539\u524d)<br \/>\n<\/code><\/p>\n<p>\u6700\u5f8c\u4e00\u63d0\u7684\u662f .gitignore\uff0c\u9019\u500b\u6a94\u6848\u53ef\u4ee5\u7de8\u8f2f\u5217\u51fa\u54ea\u4e9b\u6a94\u6848\u662f\u8981\u5ffd\u7565\u4e0d\u9700\u8981 tracked \u7684\uff0c\u50cf Rails \u5c31\u6703\u52a0\u5165 log\/*.log \u548c tmp\/**\/* \u3002<\/p>\n<p>Git \u9084\u6709\u9805\u6bd4\u8f03\u7279\u7acb\u7368\u884c\u7684\u884c\u70ba\u662f<strong>\u7a7a\u76ee\u9304\u662f\u4e0d\u6703 commit \u51fa\u53bb\u7684<\/strong>\uff0c\u9019\u5728\u67d0\u4e9b\u5c08\u6848\u53ef\u80fd\u6703\u662f\u554f\u984c(\u4f8b\u5982 Rails \u5982\u679c\u5c11\u4e86 log \u6216 tmp \u76ee\u9304\u6703\u4e0d\u80fd\u555f\u52d5)\uff0c\u89e3\u6c7a\u8fa6\u6cd5\u662f\u5728\u8a72\u76ee\u9304\u4e0b touch \u4e00\u500b\u7a7a\u7684\u6a94\u6848\uff0c\u6163\u4f8b\u662f .gitkeep\u3002<\/p>\n<p>(\u8acb\u671f\u5f85\u7e8c\u96c6\uff1a\u958b Branch \u5206\u652f\u3001\u64cd\u4f5c\u9060\u7aef Repo.\u3001\u9084\u6c92 push \u524d\u53ef\u4ee5\u5e79\u7684\u58de\u4e8b\u4ee5\u53ca\u5176\u4ed6\u5947\u6280\u6deb\u5de7)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u95dc\u65bc Git \u53ef\u4ee5\u53c3\u8003\u6211\u7684 Git \u7248\u672c\u63a7\u5236 \u8ab2\u7a0b\u8cc7\u6599 \u81ea\u5f9e\u53bb\u5e74 Rails \u6539\u7528 Github hostin &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ihower.tw\/blog\/2591-git-part1-introduction\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008Git \u7248\u672c\u63a7\u5236\u7cfb\u7d71 (1)\u3009<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[48],"tags":[],"class_list":["post-2591","post","type-post","status-publish","format-standard","hentry","category-git","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1q6tG-FN","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts\/2591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/comments?post=2591"}],"version-history":[{"count":57,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts\/2591\/revisions"}],"predecessor-version":[{"id":12071,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts\/2591\/revisions\/12071"}],"wp:attachment":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/media?parent=2591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/categories?post=2591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/tags?post=2591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}