{"id":4986,"date":"2020-04-25T15:00:03","date_gmt":"2020-04-25T07:00:03","guid":{"rendered":"https:\/\/www.xttblog.com\/?p=4986"},"modified":"2020-04-25T15:00:03","modified_gmt":"2020-04-25T07:00:03","slug":"git-%e5%88%86%e6%94%af%e7%ae%a1%e7%90%86%e7%9a%84%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=4986","title":{"rendered":"Git \u5206\u652f\u7ba1\u7406\u7684\u6700\u4f73\u5b9e\u8df5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u4e00\u4e2a\u597d\u7684\u4ea7\u54c1\uff0c\u79bb\u4e0d\u5f00\u6574\u4e2a\u56e2\u961f\u7684\u9f50\u5fc3\u534f\u529b\u3002\u597d\u7684\u7ba1\u7406\u65b9\u6cd5\uff0c\u7ba1\u7406\u5de5\u5177\u80fd\u8ba9\u6211\u7684\u6548\u7387\u548c\u8d28\u91cf\u5927\u5e45\u63d0\u5347\u3002\u4eca\u5929\u7ed9\u5927\u5bb6\u8bf4\u4e00\u4e0b Git \u5206\u652f\u7ba1\u7406\u7684\u6700\u4f73\u5b9e\u8df5\uff01<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001\u8981\u786e\u4fdd\uff1a\u56e2\u961f\u6210\u5458\u4ece\u4e3b\u5206\u652f(master)\u83b7\u5f97\u7684\u90fd\u662f\u5904\u4e8e\u53ef\u53d1\u5e03\u72b6\u6001\u7684\u4ee3\u7801\uff0c\u800c\u4ece\u5f00\u53d1\u5206\u652f(develop)\u5e94\u8be5\u603b\u80fd\u591f\u83b7\u5f97\u6700\u65b0\u5f00\u53d1\u8fdb\u5c55\u7684\u4ee3\u7801\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u201c\u8f85\u52a9\u5206\u652f\u201d\uff0c\u5927\u4f53\u5305\u62ec\u5982\u4e0b\u51e0\u7c7b\uff1a\u201c\u7ba1\u7406\u529f\u80fd\u5f00\u53d1\u201d\u7684\u5206\u652f\u3001\u201c\u5e2e\u52a9\u6784\u5efa\u53ef\u53d1\u5e03\u4ee3\u7801\u201d\u7684\u5206\u652f\u3001\u201c\u53ef\u4ee5\u4fbf\u6377\u7684\u4fee\u590d\u53d1\u5e03\u7248\u672c\u5173\u952e BUG\u201d\u7684\u5206\u652f\uff0c\u7b49\u7b49\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3\u3001GIT\uff0c\u5728\u6280\u672f\u5c42\u9762\u4e0a\uff0c\u7edd\u5bf9\u662f\u4e00\u4e2a\u65e0\u4e2d\u5fc3\u7684\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u4f46\u5728\u7ba1\u7406\u5c42\u9762\u4e0a\uff0c\u6211\u5efa\u8bae\u4f60\u4fdd\u6301\u4e00\u4e2a\u4e2d\u5fc3\u7248\u672c\u5e93\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/simg.open-open.com\/show\/2213ce8b88e374f4bf869a664a64672b.jpg\" alt=\"\" \/><figcaption>Git \u4e2d\u5fc3\u7248\u672c\u5e93<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">4\u3001\u6211\u5efa\u8bae\uff0c\u4e00\u4e2a\u4e2d\u5fc3\u7248\u672c\u5e93(\u6211\u4eec\u53eb\u5b83 origin)\u81f3\u5c11\u5305\u62ec\u4e24\u4e2a\u5206\u652f\uff0c\u5373\u201c\u4e3b\u5206\u652f(master)\u201d\u548c\u201c\u5f00\u53d1\u5206\u652f(develop)\u201d\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/simg.open-open.com\/show\/ed321721c3b554dca6669419bb6cfbfb.jpg\" alt=\"\" \/><figcaption>Git \u5206\u652f\u7ba1\u7406<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">5\u3001\u5728\u4e00\u4e2a\u56e2\u961f\u5f00\u53d1\u534f\u4f5c\u4e2d\uff0c\u6211\u5efa\u8bae\uff0c\u8981\u6709\u201c\u8f85\u52a9\u5206\u652f\u201d\u7684\u6982\u5ff5\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">6\u3001\u201c\u8f85\u52a9\u5206\u652f\u201d\u7684\u6700\u5927\u7279\u70b9\u5c31\u662f\u201c\u751f\u547d\u5468\u671f\u5341\u5206\u6709\u9650\u201d\uff0c\u5b8c\u6210\u4f7f\u547d\u540e\u5373\u53ef\u88ab\u6e05\u9664\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7\u3001\u6211\u5efa\u8bae\u81f3\u5c11\u8fd8\u5e94\u8bbe\u7f6e\u4e09\u7c7b\u201c\u8f85\u52a9\u5206\u652f\u201d\uff0c\u6211\u4eec\u79f0\u4e4b\u4e3a\u201cFeature branches\u201d\uff0c\u201cRelease branches\u201d\uff0c\u201cHotfix branches\u201d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u81f3\u6b64\uff0c\u6211\u4eec\u5f62\u6210\u4e86\u5982\u4e0b\u8fd9\u5f20\u6700\u91cd\u8981\u7684\u7ec4\u7ec7\u7ec4\uff0c\u5305\u542b\u4e86\u4e24\u4e2a\u7c97\u4f53\u5b57\u5206\u652f\uff08master\/develop\uff09\u548c\u4e09\u4e2a\u7ec6\u4f53\u5b57\u5206\u652f\uff08feature\/release\/hotfixes\uff09\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/simg.open-open.com\/show\/f3fb5abc4909d4107b088556335acfd8.jpg\" alt=\"\" \/><figcaption>Git \u5206\u652f\u7ba1\u7406<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">8\u3001\u201cFeature branches\u201d\uff0c\u8d77\u6e90\u4e8e develop \u5206\u652f\uff0c\u6700\u7ec8\u4e5f\u4f1a\u5f52\u4e8e develop \u5206\u652f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">9\u3001\u201cFeature branches\u201d\u5e38\u7528\u4e8e\u5f00\u53d1\u4e00\u4e2a\u72ec\u7acb\u7684\u65b0\u529f\u80fd\uff0c\u4e14\u5176\u6700\u7ec8\u7684\u7ed3\u5c40\u5fc5\u7136\u53ea\u6709\u4e24\u4e2a\uff0c\u5176\u4e00\u662f\u5408\u5e76\u5165\u201cdevelop\u201d\u5206\u652f\uff0c\u5176\u4e8c\u662f\u88ab\u629b\u5f03\u3002\u6700\u5178\u578b\u7684\u201cFearture branches\u201d\u4e00\u5b9a\u662f\u5b58\u5728\u4e8e\u56e2\u961f\u5f00\u53d1\u8005\u90a3\u91cc\uff0c\u800c\u4e0d\u5e94\u8be5\u662f\u201c\u4e2d\u5fc3\u7248\u672c\u5e93\u201d\u4e2d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">10\u3001\u201cFeature branches\u201d\u8d77\u6e90\u4e8e\u201cdevelop\u201d\u5206\u652f\uff0c\u5b9e\u73b0\u65b9\u6cd5\u662f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git checkout -b myfeature develop<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">11\u3001\u201cFeature branches\u201d\u6700\u7ec8\u4e5f\u5f52\u4e8e\u201cdevelop\u201d\u5206\u652f\uff0c\u5b9e\u73b0\u65b9\u5f0f\u662f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git checkout devleop\ngit merge \u2013no-ff myfeature\uff08\u2013no-ff\uff0c\u5373 not fast forward\uff0c\u5176\u4f5c\u7528\u662f\uff1a\u8981\u6c42 git merge \u5373\u4f7f\u5728 fast forward \u6761\u4ef6\u4e0b\u4e5f\u8981\u4ea7\u751f\u4e00\u4e2a\u65b0\u7684 merge commit\uff09\uff08\u6b64\u5904\uff0c\u8981\u6c42\u91c7\u7528\u2013no-ff \u7684\u65b9\u5f0f\u8fdb\u884c\u5206\u652f\u5408\u5e76\uff0c\u5176\u76ee\u7684\u5728\u4e8e\uff0c\u5e0c\u671b\u4fdd\u6301\u539f\u6709\u201cFeature branches\u201d\u6574\u4e2a\u63d0\u4ea4\u94fe\u7684\u5b8c\u6574\u6027\uff09\ngit branch -d myfeaturegit push origin develop<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/simg.open-open.com\/show\/87c197d6f35317071971aa51b871b46f.jpg\" alt=\"\" \/><figcaption>Feature branches<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">12\u3001\u201cRelease branch\u201d\uff0c\u8d77\u6e90\u4e8e develop \u5206\u652f\uff0c\u6700\u7ec8\u5f52\u4e8e\u201cdevelop\u201d\u6216\u201cmaster\u201d\u5206\u652f\u3002\u8fd9\u7c7b\u5206\u652f\u5efa\u8bae\u547d\u540d\u4e3a\u201crelease-*\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">13\u3001\u201cRelase branch\u201d\u901a\u5e38\u8d1f\u8d23\u201c\u77ed\u671f\u7684\u53d1\u5e03\u524d\u51c6\u5907\u5de5\u4f5c\u201d\u3001\u201c\u5c0f bug \u7684\u4fee\u590d\u5de5\u4f5c\u201d\u3001\u201c\u7248\u672c\u53f7\u7b49\u5143\u4fe1\u606f\u7684\u51c6\u5907\u5de5\u4f5c\u201d\u3002\u4e0e\u6b64\u540c\u65f6\uff0c\u201cdevelop\u201d\u5206\u652f\u53c8\u53ef\u4ee5\u627f\u63a5\u4e0b\u4e00\u4e2a\u65b0\u529f\u80fd\u7684\u5f00\u53d1\u5de5\u4f5c\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">14\u3001\u201cRelease branch\u201d\u4ea7\u751f\u65b0\u63d0\u4ea4\u7684\u6700\u597d\u65f6\u673a\u662f\u201cdevelop\u201d\u5206\u652f\u5df2\u7ecf\u57fa\u672c\u5230\u8fbe\u9884\u671f\u7684\u72b6\u6001\uff0c\u81f3\u5c11\u5e0c\u671b\u65b0\u529f\u80fd\u5df2\u7ecf\u5b8c\u5168\u4ece\u201cFeature branches\u201d\u5408\u5e76\u5230\u201cdevelop\u201d\u5206\u652f\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">15\u3001\u521b\u5efa\u201cRelease branches\u201d\uff0c\u65b9\u6cd5\u662f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git checkout -b release-1.2 develop.\/bump-version.sh 1.2 \n#\uff08\u8fd9\u4e2a\u811a\u672c\u7528\u4e8e\u5c06\u4ee3\u7801\u6240\u6709\u6d89\u53ca\u7248\u672c\u4fe1\u606f\u7684\u5730\u65b9\u90fd\u7edf\u4e00\u4fee\u6539\u52301.2\uff0c\u53e6\u5916\uff0c\u9700\u8981\u7528\u6237\u6839\u636e\u81ea\u5df1\u7684\u9879\u76ee\u53bb\u7f16\u5199\u9002\u5408\u7684 bump-version.sh\uff09\ngit commit -a -m \u201cBumped version number to 1.2\u2033<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">16\u3001\u5728\u4e00\u6bb5\u77ed\u65f6\u95f4\u5185\uff0c\u5728\u201cRelease branches\u201d\u4e0a\uff0c\u6211\u4eec\u53ef\u4ee5\u7ee7\u7eed\u4fee\u590d bug\u3002\u5728\u6b64\u9636\u6bb5\uff0c\u4e25\u7981\u65b0\u529f\u80fd\u7684\u5e76\u5165\uff0c\u65b0\u529f\u80fd\u5e94\u8be5\u662f\u88ab\u5408\u5e76\u5230\u201cdevelop\u201d\u5206\u652f\u7684\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">17\u3001\u7ecf\u8fc7\u82e5\u5e72 bug \u4fee\u590d\u540e\uff0c\u201cRelease branches\u201d\u4e0a\u7684\u4ee3\u7801\u5df2\u7ecf\u8fbe\u5230\u53ef\u53d1\u5e03\u72b6\u6001\uff0c\u6b64\u65f6\uff0c\u9700\u8981\u5b8c\u6210\u4e09\u4e2a\u52a8\u4f5c\uff1a\u7b2c\u4e00\u662f\u5c06\u201cRelease branches\u201d\u5408\u5e76\u5230\u201cmaster\u201d\u5206\u652f\uff0c\u7b2c\u4e8c\u662f\u4e00\u5b9a\u8981\u4e3a master \u4e0a\u7684\u8fd9\u4e2a\u65b0\u63d0\u4ea4\u6253 TAG\uff08\u8bb0\u5f55\u91cc\u7a0b\u7891\uff09\uff0c\u7b2c\u4e09\u662f\u8981\u5c06\u201cRelease branches\u201d\u5408\u5e76\u56de\u201cdevelop\u201d\u5206\u652f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git checkout master\ngit merge \u2013no-ff release-1.2\ngit tag -a 1.2 \n#\uff08\u4f7f\u7528-u\/-s\/-a\u53c2\u6570\u4f1a\u521b\u5efa tag \u5bf9\u8c61\uff0c\u800c\u975e\u8f6f tag\uff09\ngit checkout develop\ngit merge \u2013no-ff release-1.2\ngit branch -d release-1.2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">18\u3001\u201cHotfix branches\u201d\u6e90\u4e8e\u201cmaster\u201d\uff0c\u5f52\u4e8e\u201cdevelop\u201d\u6216\u201cmaster\u201d\uff0c\u901a\u5e38\u547d\u540d\u4e3a\u201chotfix-*\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">19\u3001\u201cHotfix branches\u201d\u7c7b\u4f3c\u4e8e\u201cRelease branch\u201d\uff0c\u4f46\u4ea7\u751f\u6b64\u5206\u652f\u603b\u662f\u975e\u9884\u671f\u7684\u5173\u952e BUG\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">20\u3001\u5efa\u8bae\u8bbe\u7acb\u201cHotfix branches\u201d\u7684\u539f\u56e0\u662f\uff1a\u5e0c\u671b\u907f\u514d\u201cdevelop \u5206\u652f\u201d\u65b0\u529f\u80fd\u7684\u5f00\u53d1\u5fc5\u987b\u4e3a BUG \u4fee\u590d\u8ba9\u8def\u7684\u60c5\u51b5\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/simg.open-open.com\/show\/703d3acc58072c061b128b79e5590d6b.jpg\" alt=\"\" \/><figcaption>Hotfix branches<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">21\u3001\u5efa\u7acb\u201cHotfix branches\u201d\uff0c\u65b9\u6cd5\u662f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git checkout -b hotfix-1.2.1 master.\/bump-version.sh 1.2.1\ngit commit -a -m \u201cBumpt version to 1.2.1\u2033 \n#\uff08\u7136\u540e\u53ef\u4ee5\u5f00\u59cb\u95ee\u9898\u4fee\u590d\u5de5\u4f5c\uff09\ngit commit -m \u201cFixed severe production problem\u201d \n#\uff08\u5728\u95ee\u9898\u4fee\u590d\u540e\uff0c\u8fdb\u884c\u7b2c\u4e8c\u6b21\u63d0\u4ea4\uff09<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">22\u3001BUG \u4fee\u590d\u540e\uff0c\u9700\u8981\u5c06\u201cHotfix branches\u201d\u5408\u5e76\u56de\u201cmaster\u201d\u5206\u652f\uff0c\u540c\u65f6\u4e5f\u9700\u8981\u5408\u5e76\u56de\u201cdevelop\u201d\u5206\u652f\uff0c\u65b9\u6cd5\u662f\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">git checkout mastergit merge \u2013no-ff hotfix-1.2.1git tag -a 1.2.1git checkout developgit merge \u2013no-ff hotfix-1.2.1git branch -d hotfix-1.2.1<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">23\u3001\u8fd8\u8bb0\u5f97\u6587\u7ae0\u5f00\u59cb\u65f6\u7684\u90a3\u5f20\u5927\u56fe\u4e48\uff0c\u6211\u5efa\u8bae\u4f60\u628a\u8fd9\u5e45\u5927\u56fe<a href=\"http:\/\/www.nvie.com\/posts\/a-successful-git-branching-model\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"\u4ece\u8fd9\u91cc\u4e0b\u8f7d\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\">\u4ece\u8fd9\u91cc\u4e0b\u8f7d<\/a>\u4e0b\u6765\uff0c\u6253\u5370\u51fa\u6765\uff0c\u8d34\u5728\u4f60\u5199\u5b57\u53f0\u7684\u5899\u58c1\u4e0a\uff0c\u597d\u5904\u4e0d\u8a00\u800c\u55bb\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=4986\">Git \u5206\u652f\u7ba1\u7406\u7684\u6700\u4f73\u5b9e\u8df5<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u4e00\u4e2a\u597d\u7684\u4ea7\u54c1\uff0c\u79bb\u4e0d\u5f00\u6574\u4e2a\u56e2\u961f\u7684\u9f50\u5fc3\u534f\u529b\u3002\u597d\u7684\u7ba1\u7406\u65b9\u6cd5\uff0c\u7ba1\u7406\u5de5\u5177\u80fd\u8ba9\u6211\u7684\u6548\u7387\u548c\u8d28\u91cf\u5927\u5e45\u63d0\u5347\u3002\u4eca\u5929\u7ed9\u5927\u5bb6\u8bf4\u4e00\u4e0b G [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[68,1438,1580,431,436],"class_list":["post-4986","post","type-post","status-publish","format-standard","hentry","category-yyzt","tag-csv","tag-git","tag-mask-image","tag-exe","tag-436"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4986","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4986"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4986\/revisions"}],"predecessor-version":[{"id":4987,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4986\/revisions\/4987"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}