{"id":920,"date":"2021-02-28T18:22:14","date_gmt":"2021-02-28T10:22:14","guid":{"rendered":"http:\/\/www.mustenaka.cn\/?p=920"},"modified":"2021-02-28T22:03:05","modified_gmt":"2021-02-28T14:03:05","slug":"newgithubcommandbeforefloyd","status":"publish","type":"post","link":"https:\/\/www.mustenaka.cn\/index.php\/2021\/02\/28\/newgithubcommandbeforefloyd\/","title":{"rendered":"\u5f17\u6d1b\u4f0a\u5fb7\u4e8b\u4ef6\u4e4b\u540e\u7684GITHUB\u547d\u4ee4\/\u65b0\u7684GITHUB\u547d\u4ee4"},"content":{"rendered":"<p>2020\u5e745\u6708\u4efd\uff0c\u7f8e\u56fd\u53d1\u751f\u4e86\u8457\u540d\u7684\u5f17\u6d1b\u4f0a\u5fb7\u4e8b\u4ef6\uff08\u60f3\u8981\u4e86\u89e3\u5177\u4f53\u60c5\u51b5\u53ef\u4ee5\u81ea\u884c\u67e5\u9605\u767e\u79d1\uff09\uff0c\u81ea\u90a3\u65f6\u4e4b\u540e\uff0cmircosoft\uff0cgoogle\uff0cgithub\u7b49\u4e00\u7cfb\u5217\u79d1\u6280\u516c\u53f8\u5f00\u59cb\u7740\u91cd\u5904\u7406\u5173\u4e8e\u79cd\u65cf\u6b67\u89c6\u76f8\u5173\u7684\u5185\u5bb9\uff0c\u4f1a\u5ba1\u67e5\u5185\u90e8\u4ef7\u503c\u89c2\uff0c\u751a\u81f3\u5230\u8fbe\u4ee3\u7801\u5c42\u9762\u7684\u4fee\u6539\u3002<\/p>\n<p>\u5bf9\u4e8e\u6211\u4eec\u800c\u8a00\uff0c\u6700\u5177\u4ee3\u8868\u6027\u7684\u5e94\u8be5\u662f\u6b64\u6b21\u4e8b\u4ef6\u4e4b\u540e\uff0c2020\u5e74<span>6\u670812\u65e5\uff0c\u8c37\u6b4c\u6d4f\u89c8\u5668\u5f00\u53d1\u4eba\u5458 Una Kravets \u5efa\u8bae GitHub \u7528 main \u4e4b\u7c7b\u7684\u4e2d\u6027\u672f\u8bed\u66ff\u6362 master \uff0c\u5e76\u89e3\u91ca\u4e86\u63d0\u51fa\u8fd9\u4e2a\u5efa\u8bae\u7684\u539f\u56e0\uff1a<\/span><\/p>\n<ul>\n<li>main \u66f4\u77ed\uff0c\u7b80\u6d01\u660e\u4e86\uff1b<\/li>\n<li>\u5bb9\u6613\u88ab\u4eba\u8bb0\u4f4f\uff1b<\/li>\n<li>\u4f1a\u8ba9\u6211\u7684\u961f\u53cb\u4eec\u611f\u5230\u8212\u9002\uff1b<\/li>\n<li>\u4e0d\u4f1a\u8ba9\u9ed1\u4eba\u5728\u79d1\u6280\u754c\u611f\u5230\u88ab\u6b67\u89c6\uff1b<\/li>\n<\/ul>\n<p>\u73b0\u5728\u5df2\u7ecf\u5168\u9762\u6267\u884c\u4e86\uff0c\u5bf9\u4e8e\u65b0\u521b\u5efa\u7684\u4ee3\u7801\u4ed3\u5e93\u800c\u8a00\uff0c\u4f9d\u65e7\u4f7f\u7528\u65e7\u7248\u7684\u547d\u4ee4\uff0c\u4f1a\u83ab\u540d\u5176\u5999\u7684\u53d8\u4e3a\u521b\u5efa\u4ee3\u7801\u5206\u652f\uff0c\u4ece\u800c\u5f15\u53d1\u4e00\u7cfb\u5217\u7684\u95ee\u9898\uff0c\u67d0\u4e9b\u9879\u76ee\u56e0\u4e3a\u6b64\u7c97\u66b4\u7684\u4fee\u6539\u751a\u81f3\u8fd8\u53d1\u751f\u4e86\u5d29\u6e83\uff0c\u4f46\u662f\u5230\u4e86\u73b0\u5728\uff0c\u8fd9\u4e9b\u547d\u540d\u7684\u4fee\u6539\u5df2\u7ecf\u57fa\u672c\u5c18\u57c3\u843d\u5b9a\uff0c\u5bf9\u4e8e\u547d\u4ee4\u800c\u8a00\uff0c\u4e3b\u8981\u6709\u4ee5\u4e0b\u5185\u5bb9\u7684\u4fee\u6539\uff1a<\/p>\n<blockquote><p><span>master \u548c slave \u5c06\u88ab\u66ff\u6362\u4e3a main\/default\/primary \u548c secondary\uff0cwhitelist \u548c blacklist \u5219\u5c06\u88ab\u66ff\u6362\u4e3a allow list \u548c deny\/exclude list \u3002<\/span><\/p><\/blockquote>\n<p>\u5982\u56fe\uff1a\u5bf9\u4e8e\u65b0\u521b\u5efa\u7684\u4ee3\u7801\u4ed3\u5e93\uff0c\u5177\u4f53\u7684\u547d\u4ee4\u4fee\u6539\u4e3a\uff1a<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/www.mustenaka.cn\/wp-content\/uploads\/2021\/02\/2J6JEZJVLTB1FPQ@_U.png\" alt=\"\" width=\"1920\" height=\"915\" class=\"alignnone size-full wp-image-925\" srcset=\"https:\/\/www.mustenaka.cn\/wp-content\/uploads\/2021\/02\/2J6JEZJVLTB1FPQ@_U.png 1920w, https:\/\/www.mustenaka.cn\/wp-content\/uploads\/2021\/02\/2J6JEZJVLTB1FPQ@_U-300x143.png 300w, https:\/\/www.mustenaka.cn\/wp-content\/uploads\/2021\/02\/2J6JEZJVLTB1FPQ@_U-1024x488.png 1024w, https:\/\/www.mustenaka.cn\/wp-content\/uploads\/2021\/02\/2J6JEZJVLTB1FPQ@_U-768x366.png 768w, https:\/\/www.mustenaka.cn\/wp-content\/uploads\/2021\/02\/2J6JEZJVLTB1FPQ@_U-1536x732.png 1536w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>\u5bf9\u4e8e\u521b\u5efa\u65b0\u7684\u4ed3\u5e93\uff1a<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"\" bash=\"\">echo \"# TestNewCommand\" &gt;&gt; README.md\r\ngit init\r\ngit add README.md\r\ngit commit -m \"first commit\"\r\ngit branch -M main\r\ngit remote add origin git@github.com:Mustenaka\/TestNewCommand.git\r\ngit push -u origin main<\/code><\/pre>\n<p>\u5bf9\u4e8e\u5c06\u5df2\u6709\u7684\u9879\u76ee\u4e2d\u7684\u9879\u76ee\u4e0a\u4f20<\/p>\n<pre id=\"empty-setup-push-repo-echo\" class=\"copyable-terminal-content f5\"><span class=\"user-select-contain\">git remote add origin <span data-targets=\"git-clone-help.helpTexts\">git@github.com:Mustenaka\/TestNewCommand.git<\/span><\/span>\r\n<span class=\"user-select-contain\">git branch -M main<\/span>\r\n<span class=\"user-select-contain\">git push -u origin main<\/span><\/pre>\n<p>\u53ef\u4ee5\u53d1\u73b0\uff0c\u5df2\u7ecf\u4e0d\u662fmaster\u800c\u662fmain\u4e86\uff0c\u5982\u679c\u7ee7\u7eed\u4f7f\u7528master\u4f1a\u81ea\u52a8\u521b\u5efa\u4e00\u4e2a\u5206\u652f\uff0c\u540c\u65f6\u4e0a\u4f20\u8be5\u5206\u652f\u8fd8\u4f1a\u6709\u540c\u6b65\u548c\u5408\u5e76\u7684\u95ee\u9898\u3002<\/p>\n<p>\u63d0\u4ea4\u4ee3\u7801\u5230\u4ed3\u5e93\u4e5f\u5c31\u7406\u6240\u5e94\u5f53\u7684\u53d8\u6210\u4e86<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"\" bash=\"\">git add .\r\ngit commit -m \"\"\r\n# \u524d\u7f6e\u9700\u8981\u540c\u6b65\uff0c\u53ef\u4ee5\u7528 git pull origin main\r\ngit push origin main<\/code><\/pre>\n<p>\u5176\u4f59\u7684\u64cd\u4f5c\u53ef\u4ee5\u53c2\u8003\u5b98\u65b9\u6587\u6863\uff1a<a href=\"https:\/\/docs.github.com\/en\/github\/getting-started-with-github\/fork-a-repo\">https:\/\/docs.github.com\/en\/github\/getting-started-with-github\/fork-a-repo<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>2020\u5e745\u6708\u4efd\uff0c\u7f8e\u56fd\u53d1\u751f\u4e86\u8457\u540d\u7684\u5f17\u6d1b\u4f0a\u5fb7\u4e8b\u4ef6\uff08\u60f3\u8981\u4e86\u89e3\u5177\u4f53\u60c5\u51b5\u53ef\u4ee5\u81ea\u884c\u67e5\u9605\u767e\u79d1\uff09\uff0c\u81ea\u90a3\u65f6\u4e4b\u540e\uff0cmi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[38,39],"class_list":["post-920","post","type-post","status-publish","format-standard","hentry","category-git","tag-git","tag-github"],"views":1229,"_links":{"self":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/920","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/comments?post=920"}],"version-history":[{"count":7,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/920\/revisions"}],"predecessor-version":[{"id":928,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/920\/revisions\/928"}],"wp:attachment":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/media?parent=920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/categories?post=920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/tags?post=920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}