{"id":5009,"date":"2021-01-30T23:38:45","date_gmt":"2021-01-30T15:38:45","guid":{"rendered":"https:\/\/damogame.cn\/wordpress\/?p=5009"},"modified":"2021-01-30T23:38:45","modified_gmt":"2021-01-30T15:38:45","slug":"github%e5%bc%80%e6%ba%90%e6%96%b0%e5%91%bd%e4%bb%a4%e8%a1%8c%e5%b7%a5%e5%85%b7%ef%bc%9a%e5%9c%a8%e7%bb%88%e7%ab%af%e9%87%8c%e5%88%9b%e5%bb%ba%e3%80%81%e7%ae%a1%e7%90%86pr%e6%88%90%e7%8e%b0%e5%ae%9e","status":"publish","type":"post","link":"https:\/\/i007.cc\/wordpress\/archives\/5009","title":{"rendered":"GitHub\u5f00\u6e90\u65b0\u547d\u4ee4\u884c\u5de5\u5177\uff1a\u5728\u7ec8\u7aef\u91cc\u521b\u5efa\u3001\u7ba1\u7406PR\u6210\u73b0\u5b9e\u00a0"},"content":{"rendered":"<div class=\"text-title\">\n<p><a href=\"https:\/\/www.sohu.com\/a\/372950096_100191018\">\u539f\u6587\u5730\u5740<\/a><\/p>\n<div class=\"article-info\"><span id=\"news-time\" class=\"time\" data-val=\"1581649467000\">2020-02-14 11:04<\/span><\/div>\n<\/div>\n<article id=\"mp-editor\" class=\"article\">\u539f\u6807\u9898\uff1aGitHub\u5f00\u6e90\u65b0\u547d\u4ee4\u884c\u5de5\u5177\uff1a\u5728\u7ec8\u7aef\u91cc\u521b\u5efa\u3001\u7ba1\u7406PR\u6210\u73b0\u5b9e \u6765\u6e90\uff1a\u91cf\u5b50\u4f4d<\/p>\n<p>\u5173\u6ce8\u524d\u6cbf\u79d1\u6280 \u91cf\u5b50\u4f4d<\/p>\n<p>\u9c7c\u7f8a \u53d1\u81ea \u51f9\u975e\u5bfa<\/p>\n<p>\u91cf\u5b50\u4f4d \u62a5\u9053 | \u516c\u4f17\u53f7 QbitAI<\/p>\n<p>GitHub \u7684\u5b98\u65b9\u5f00\u6e90\u547d\u4ee4\u884c\u5de5\u5177\u6765\u4e86\u3002<\/p>\n<p>\u540d\u5b57\u5f88\u6b63\u5f0f\uff0c\u53eb\u505a GitHub CLI\uff0c\u522b\u540d gh\u3002<\/p>\n<p>\u4e0e\u6b64\u524d\u7684 hub \u4e0d\u540c\uff0cgh \u662f\u66f4\u9ad8\u5c42\u7684\u5c01\u88c5\uff0cGitHub \u5e0c\u671b\u501f\u52a9\u8fd9\u4e00\u65b0\u5de5\u5177\uff0c\u8fdb\u4e00\u6b65\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<p>\u6ce8\uff1ahub\uff0c\u4e00\u79cd\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u8ba9git\u66f4\u6613\u4e8e\u4e0eGitHub\u914d\u5408\u4f7f\u7528<\/p>\n<p>\u6bd4\u5982\uff0c\u4f7f\u7528 gh\uff0c\u4f60\u5c31\u80fd\u76f4\u63a5\u4ece\u547d\u4ee4\u884c\u521b\u5efa\u3001\u7ba1\u7406 pull request \u548c issue \u4e86\u3002<\/p>\n<p>\u9879\u76ee\u7684\u4e3b\u8981\u5f00\u53d1\u4eba\u5458 Mislav Marohni\u0107 \u8868\u793a\uff1a<\/p>\n<p>hub \u6700\u521d\u8bbe\u8ba1\u7684\u76ee\u7684\u662f\u5305\u88c5 git\u3002\u4f46\u5b83\u8ba9 git \u7684\u901f\u5ea6\u53d8\u5f97\u5f88\u6162\uff0c\u6709\u65f6\u751a\u81f3\u4f1a\u8d85\u8fc7 140ms\u3002<\/p>\n<p>\u66f4\u5feb\u7684 gh \u5df2\u7ecf\u5f15\u8d77\u4e86\u793e\u533a\u7684\u5171\u9e23\u3002<\/p>\n<p>\u76ee\u524d\uff0c\u4e0a\u7ebf\u7684 GitHub CLI \u8fd8\u53ea\u662f\u6d4b\u8bd5\u7248\u672c\uff0cGitHub \u5b98\u65b9\u8868\u793a\uff0c\u671f\u5f85\u6765\u81ea\u4f60\u7684\u4f7f\u7528\u53cd\u9988~<\/p>\n<p>macOS\uff0cWindows \u548c Linux \u5747\u53ef\u5b89\u88c5\u3002<\/p>\n<p>\u4f7f\u7528\u6307\u5357<\/p>\n<p>\u4ee5 issue \u548c pull request \u4e3a\u4f8b\uff0c\u6765\u770b\u770b gh \u80fd\u5e26\u6765\u600e\u6837\u7684\u65b0\u4f53\u9a8c\u3002<\/p>\n<p>\u6839\u636e\u9700\u6c42\u8fc7\u6ee4<\/p>\n<p>\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5728\u4f60\u770b\u4e2d\u4e86\u4e00\u4e2a\u5f00\u6e90\u9879\u76ee\uff0c\u5e76\u5e0c\u671b\u4e3a\u5176\u8d21\u732e\u667a\u6167\uff0c\u53ef\u4ee5\u4f7f\u7528\u8fd9\u6837\u7684\u547d\u4ee4\u884c\uff1a<\/p>\n<p>gh issue list &#8211; -label \u201chelp wanted\u201d<\/p>\n<p>\u8fd9\u6837\uff0c\u5e26\u6709\u201chelp wanted\u201d\u6807\u7b7e\u7684 issue \u5c31\u4f1a\u88ab\u8fc7\u6ee4\u51fa\u6765\uff0c\u65b9\u4fbf\u67e5\u770b\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/5b0988e595225.cdn.sohucs.com\/images\/20200214\/77ba5a46d6094c67892e7a5f7a6dc2ef.jpeg\" \/><\/p>\n<p>\u5feb\u901f\u6d4f\u89c8\u8be6\u60c5<\/p>\n<p>\u90a3\u4e48\u8fd9\u4e2a\u7f16\u53f7 #254 \u7684 issue \u5230\u5e95\u662f\u4e2a\u4ec0\u4e48\u95ee\u9898\uff1f<\/p>\n<p>gh issue view 254<\/p>\n<p>\u540c\u6837\u4e00\u53e5\u547d\u4ee4\u884c\uff0c\u5c31\u80fd\u5728\u6d4f\u89c8\u5668\u91cc\u6253\u5f00\u8fd9\u4e2a issue \u4e86\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/5b0988e595225.cdn.sohucs.com\/images\/20200214\/8ce0e5ed654841019ab20ada949bc1bb.png\" \/><\/p>\n<p>\u521b\u5efa\u3001\u7ba1\u7406 pull request<\/p>\n<p>\u66f4\u4eae\u773c\u7684\u529f\u80fd\uff0c\u5f53\u7136\u662f\u76f4\u63a5\u5728\u547d\u4ee4\u884c\u91cc\u521b\u5efa\u3001\u7ba1\u7406 PR \u548c issue\u3002<\/p>\n<p>\u521b\u5efa\u65b0\u7684 pull request\uff1a<\/p>\n<p>gh pr create<\/p>\n<p>\u5982\u679c\u8fd9\u65f6\u4f60\u6ca1\u6709\u521b\u5efa\u5206\u652f\uff0cGitHub CLI \u4f1a\u81ea\u52a8\u521b\u5efa\u5206\u652f\uff0c\u5e76 push \u8fd9\u4e00\u5206\u652f\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/5b0988e595225.cdn.sohucs.com\/images\/20200214\/b8612ded71b843a399605e52811fdfd4.jpeg\" \/><\/p>\n<p>push\u4e4b\u540e\uff0c\u60f3\u770b\u770b\u81ea\u5df1\u7684 PR \u6709\u6ca1\u6709\u88ab merge\uff0c\u53ea\u9700\u8981\u5728\u7ec8\u7aef\u91cc\u8f93\u5165\uff1a<\/p>\n<p>gh pr status<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/5b0988e595225.cdn.sohucs.com\/images\/20200214\/9152f9ec2345491f88a1d573397a66da.jpeg\" \/><\/p>\n<p>\u68c0\u51fa PR \u4e5f\u5f88\u7b80\u5355\uff1a<\/p>\n<p>gh pr checkout 255<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/5b0988e595225.cdn.sohucs.com\/images\/20200214\/a39e9c7c3a3747739107b664fc5b2deb.png\" \/><\/p>\n<p>\u770b\u4e0a\u53bb\u76f8\u5f53\u4e0d\u9519\uff1f\u4e0a\u624b\u4e4b\u524d\uff0c\u53ef\u4ee5\u8be6\u7ec6\u7814\u7a76\u4e00\u4e0b\u8fd9\u4efd\u8bf4\u660e\u6587\u6863\uff1a<\/p>\n<p>https:\/\/cli.github.com\/manual\/<\/p>\n<p>hub \u5c06\u505c\u6b62\u66f4\u65b0<\/p>\n<p>GitHub CLI \u9879\u76ee\u76ee\u524d\u5df2\u7ecf\u6709 3000 \u661f\u3002\u5bf9\u4e8e beta \u7248\u672c\u7684\u4e0a\u7ebf\uff0c\u8bb8\u591a\u7f51\u53cb\u559c\u95fb\u4e50\u89c1\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/5b0988e595225.cdn.sohucs.com\/images\/20200214\/3aacc48172db4756a58c7bff7a1d2a75.jpeg\" \/><\/p>\n<p>\u6709\u7f51\u53cb\u8868\u793a\uff0c\u5df2\u7ecf\u8feb\u4e0d\u53ca\u5f85\u60f3\u8981\u7528\u8d77\u6765\u4e86\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/5b0988e595225.cdn.sohucs.com\/images\/20200214\/0af3fc81852041a6b9d75f59d65344c7.png\" \/><\/p>\n<p>\u4e0d\u8fc7\uff0c\u4e5f\u6709\u7f51\u53cb\u63d0\u53ca\uff0chub \u600e\u4e48\u529e\uff1f<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/5b0988e595225.cdn.sohucs.com\/images\/20200214\/9acc5f0fa5214abe99410c02688a2590.jpeg\" \/><\/p>\n<p>\u5bf9\u6b64\uff0cMislav Marohni\u0107 \u5728\u4ed6\u7684\u535a\u5ba2\u4e2d\u5199\u9053\uff1a<\/p>\n<p>\u6211\u4e2a\u4eba\u8ba4\u4e3a\u82b1\u65f6\u95f4\u4e3a GitHub \u7ef4\u62a4\u4e24\u4e2a\u4e92\u76f8\u72ec\u7acb\u7684\u547d\u4ee4\u884c\u5ba2\u6237\u7aef\u6ca1\u4ec0\u4e48\u4ef7\u503c\u3002<\/p>\n<p>\u6211\u5c06\u9010\u6e10\u51cf\u5c11\u5bf9 hub \u7684\u53c2\u4e0e\uff0c\u76f4\u5230\u8fd9\u4e2a\u9879\u76ee\u8fdb\u5165\u529f\u80fd\u51bb\u7ed3\u6a21\u5f0f\uff0c\u6216\u8005\u627e\u5230\u65b0\u7684\u7ef4\u62a4\u4eba\u5458\u3002<\/p>\n<p>One More Thing<\/p>\n<p>\u5f53\u5730\u65f6\u95f42\u670812\u65e5\uff0cGitHub \u8fd8\u5ba3\u5e03\u5370\u5ea6\u5b50\u516c\u53f8 GitHub India Private Limited \u6210\u7acb\u3002<\/p>\n<p>GitHub \u8868\u793a\uff0c\u5370\u5ea6\u5b50\u516c\u53f8\u5c06\u5efa\u7acb\u6db5\u76d6\u793e\u533a\u3001\u5de5\u7a0b\u3001\u9500\u552e\u3001\u652f\u6301\u3001\u5e02\u573a\u8425\u9500\u548c\u670d\u52a1\u7b49\u5168\u804c\u80fd\u90e8\u95e8\u7684\u56e2\u961f\u3002<\/p>\n<p>\u800c\u8fd9\u6837\u505a\u7684\u76ee\u7684\uff0c\u662f\u4e3a\u4e86\u4e0e\u5f00\u53d1\u4eba\u5458\u5efa\u7acb\u66f4\u7262\u56fa\u7684\u5173\u7cfb\uff0c\u8fdb\u4e00\u6b65\u652f\u6301\u5f00\u53d1\u8005\u793e\u533a\u3002<\/p>\n<p>\u4f20\u9001\u95e8<\/p>\n<p>\u9879\u76ee\u5730\u5740\uff1a<\/p>\n<p>https:\/\/github.com\/cli\/cli<\/p>\n<p>GitHub\u535a\u5ba2\uff1a<\/p>\n<p>https:\/\/github.blog\/2020-02-12-supercharge-your-command-line-experience-github-cli-is-now-in-beta\/<\/p>\n<p>Mislav Marohni\u0107\u535a\u5ba2\uff1a<\/p>\n<p>https:\/\/mislav.net\/2020\/01\/github-cli\/<\/p>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\u5730\u5740 2020-02-14 11:0<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[],"tags":[118],"class_list":["post-5009","post","type-post","status-publish","format-standard","hentry","tag-02-"],"_links":{"self":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/5009","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/comments?post=5009"}],"version-history":[{"count":0,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/5009\/revisions"}],"wp:attachment":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/media?parent=5009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/categories?post=5009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/tags?post=5009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}