{"id":19353,"date":"2024-11-19T12:35:37","date_gmt":"2024-11-19T04:35:37","guid":{"rendered":"https:\/\/fwq.ai\/blog\/19353\/"},"modified":"2024-11-19T12:35:37","modified_gmt":"2024-11-19T04:35:37","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8github%e4%b8%8a%e6%8f%90%e4%ba%a4%e4%bf%ae%e6%94%b9","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/19353\/","title":{"rendered":"\u5982\u4f55\u5728GitHub\u4e0a\u63d0\u4ea4\u4fee\u6539"},"content":{"rendered":"<p>github\u662f\u7a0b\u5e8f\u5458\u548c\u5f00\u53d1\u8005\u6700\u5e38\u7528\u7684\u534f\u4f5c\u5e73\u53f0\u4e4b\u4e00\u3002\u5b83\u5141\u8bb8\u7528\u6237\u5171\u4eab\u81ea\u5df1\u7684\u4ee3\u7801\u548c\u9879\u76ee\uff0c\u5e76\u4e3a\u5176\u4ed6\u7528\u6237\u63d0\u4f9b\u4fee\u6539\u3001\u6539\u8fdb\u548c\u53cd\u9988\u3002github\u7684\u4e00\u4e2a\u91cd\u8981\u7279\u6027\u662f\u80fd\u591f\u63d0\u4ea4\u4fee\u6539\uff0c\u5373\u521b\u5efa\u4e00\u4e2a\u5206\u652f\uff0c\u5bf9\u539f\u59cb\u4ee3\u7801\u8fdb\u884c\u66f4\u6539\uff0c\u7136\u540e\u5c06\u8fd9\u4e9b\u66f4\u6539\u5408\u5e76\u56de\u4e3b\u5206\u652f\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728github\u4e0a\u63d0\u4ea4\u4fee\u6539\u3002<\/p>\n<p>\u7b2c\u4e00\u6b65\u662f\u5728GitHub\u4e0a\u627e\u5230\u8981\u4fee\u6539\u7684\u4ed3\u5e93\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u4f60\u9700\u8981\u6709\u8be5\u4ed3\u5e93\u7684\u5199\u5165\u6743\u9650\u6216\u8005\u88ab\u9080\u8bf7\u6210\u4e3a\u8d21\u732e\u8005\u3002\u5982\u679c\u4f60\u4e0d\u786e\u5b9a\u4ed3\u5e93\u7684\u4f4d\u7f6e\uff0c\u53ef\u4ee5\u5728GitHub\u4e3b\u9875\u4e0a\u4f7f\u7528\u641c\u7d22\u680f\u8fdb\u884c\u641c\u7d22\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u5728\u4ed3\u5e93\u9875\u9762\u4e0a\u627e\u5230\u201cFork\u201d\u6309\u94ae\u5e76\u70b9\u51fb\u5b83\u3002\u8fd9\u5c06\u590d\u5236\u4ed3\u5e93\u5230\u4f60\u7684\u5e10\u6237\u4e2d\uff0c\u5e76\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5206\u652f\u3002\u4f60\u53ef\u4ee5\u5728\u8fd9\u4e2a\u5206\u652f\u4e0a\u505a\u51fa\u4f60\u7684\u4fee\u6539\u3002<\/p>\n<p>\u4e00\u65e6\u4f60\u5b8c\u6210\u4e86\u4fee\u6539\uff0c\u4f60\u9700\u8981\u63d0\u4ea4\u8fd9\u4e9b\u66f4\u6539\u5e76\u5c06\u5b83\u4eec\u5408\u5e76\u56de\u4e3b\u5206\u652f\u3002\u9996\u5148\uff0c\u5c06\u66f4\u6539\u63a8\u9001\u5230\u4f60\u7684GitHub\u4ed3\u5e93\u4e2d\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528Git\u547d\u4ee4\u884c\u5de5\u5177\u6765\u5b8c\u6210\uff1a<\/p>\n<ol>\n<li>git add -A \uff1a\u6dfb\u52a0\u6240\u6709\u4fee\u6539\u7684\u6587\u4ef6<\/li>\n<li>git commit -m &#8220;\u63cf\u8ff0\u4f60\u7684\u66f4\u6539&#8221;<\/li>\n<li>git push origin \u5206\u652f\u540d \uff1a\u5c06\u66f4\u6539\u63a8\u9001\u5230\u4f60\u7684GitHub\u4ed3\u5e93\u4e2d<\/li>\n<\/ol>\n<p>\u8bf7\u6ce8\u610f\uff0c\u4e0a\u8ff0\u547d\u4ee4\u4e2d\u7684\u201c\u5206\u652f\u540d\u201d\u662f\u4f60\u4ece\u539f\u59cb\u4ed3\u5e93\u4e2d\u6d3e\u751f\u7684\u5206\u652f\u540d\u79f0\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u4f60\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u62c9\u53d6\u8bf7\u6c42\u6765\u5c06\u4f60\u7684\u66f4\u6539\u5408\u5e76\u56de\u539f\u59cb\u4ed3\u5e93\u7684\u4e3b\u5206\u652f\u4e2d\u3002\u5728GitHub\u4ed3\u5e93\u9875\u9762\u4e0a\uff0c\u70b9\u51fb\u201cPull requests\u201d\u5e76\u9009\u62e9\u201cNew pull request\u201d\u3002\u9009\u62e9\u8981\u5408\u5e76\u7684\u5206\u652f\u5e76\u67e5\u770b\u66f4\u6539\u6458\u8981\u3002\u4f60\u4e5f\u53ef\u4ee5\u6dfb\u52a0\u6ce8\u91ca\u548c\u8bf4\u660e\u6765\u5e2e\u52a9\u5176\u4ed6\u5f00\u53d1\u8005\u66f4\u597d\u5730\u7406\u89e3\u4f60\u7684\u66f4\u6539\u3002<\/p>\n<p>\u4e00\u65e6\u8bc4\u5ba1\u8005\u6279\u51c6\u4e86\u62c9\u53d6\u8bf7\u6c42\uff0c\u4f60\u7684\u66f4\u6539\u5c31\u4f1a\u88ab\u5408\u5e76\u5230\u539f\u59cb\u4ed3\u5e93\u4e2d\u3002\u8fd9\u662f\u4e00\u9879\u975e\u5e38\u6709\u7528\u7684\u529f\u80fd\uff0c\u56e0\u4e3a\u5b83\u5141\u8bb8\u4f60\u8d21\u732e\u4e8e\u5f00\u6e90\u9879\u76ee\uff0c\u5e2e\u52a9\u6539\u8fdb\u8f6f\u4ef6\u5e76\u4e0e\u5168\u4e16\u754c\u7684\u5f00\u53d1\u8005\u4ea4\u6d41\u3002<\/p>\n<p>\u5728\u63d0\u4ea4\u4fee\u6539\u65f6\uff0c\u8bf7\u59cb\u7ec8\u786e\u4fdd\u4f60\u7684\u66f4\u6539\u662f\u5b8c\u5168\u6d4b\u8bd5\u8fc7\u7684\uff0c\u5e76\u4e14\u4e0e\u539f\u59cb\u4ee3\u7801\u76f8\u5bb9\u3002\u540c\u65f6\uff0c\u5c0a\u91cd\u539f\u521b\u4f5c\u8005\u7684\u8457\u4f5c\u6743\u3002\u6211\u4eec\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u8ba9\u4f60\u66f4\u597d\u5730\u4f7f\u7528GitHub\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u5728GitHub\u4e0a\u63d0\u4ea4\u4fee\u6539\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>github\u662f\u7a0b\u5e8f\u5458\u548c\u5f00\u53d1\u8005\u6700\u5e38\u7528\u7684\u534f\u4f5c\u5e73\u53f0\u4e4b\u4e00\u3002\u5b83\u5141\u8bb8\u7528\u6237\u5171\u4eab\u81ea\u5df1\u7684\u4ee3\u7801\u548c\u9879\u76ee\uff0c\u5e76\u4e3a\u5176\u4ed6\u7528\u6237\u63d0\u4f9b\u4fee\u6539\u3001\u6539\u8fdb\u548c\u53cd\u9988\u3002github\u7684\u4e00\u4e2a\u91cd\u8981\u7279\u6027\u662f\u80fd\u591f\u63d0\u4ea4\u4fee\u6539\uff0c\u5373\u521b\u5efa\u4e00\u4e2a\u5206\u652f\uff0c\u5bf9\u539f\u59cb\u4ee3\u7801\u8fdb\u884c\u66f4\u6539\uff0c\u7136\u540e\u5c06\u8fd9\u4e9b\u66f4\u6539\u5408\u5e76\u56de\u4e3b\u5206\u652f\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728github\u4e0a\u63d0\u4ea4\u4fee\u6539\u3002 \u7b2c\u4e00\u6b65\u662f\u5728GitHub\u4e0a\u627e\u5230\u8981\u4fee\u6539\u7684\u4ed3\u5e93\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u4f60\u9700\u8981\u6709\u8be5\u4ed3\u5e93\u7684\u5199\u5165\u6743\u9650\u6216\u8005\u88ab\u9080\u8bf7\u6210\u4e3a\u8d21\u732e\u8005\u3002\u5982\u679c\u4f60\u4e0d\u786e\u5b9a\u4ed3\u5e93\u7684\u4f4d\u7f6e\uff0c\u53ef\u4ee5\u5728GitHub\u4e3b\u9875\u4e0a\u4f7f\u7528\u641c\u7d22\u680f\u8fdb\u884c\u641c\u7d22\u3002 \u63a5\u4e0b\u6765\uff0c\u5728\u4ed3\u5e93\u9875\u9762\u4e0a\u627e\u5230\u201cFork\u201d\u6309\u94ae\u5e76\u70b9\u51fb\u5b83\u3002\u8fd9\u5c06\u590d\u5236\u4ed3\u5e93\u5230\u4f60\u7684\u5e10\u6237\u4e2d\uff0c\u5e76\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5206\u652f\u3002\u4f60\u53ef\u4ee5\u5728\u8fd9\u4e2a\u5206\u652f\u4e0a\u505a\u51fa\u4f60\u7684\u4fee\u6539\u3002 \u4e00\u65e6\u4f60\u5b8c\u6210\u4e86\u4fee\u6539\uff0c\u4f60\u9700\u8981\u63d0\u4ea4\u8fd9\u4e9b\u66f4\u6539\u5e76\u5c06\u5b83\u4eec\u5408\u5e76\u56de\u4e3b\u5206\u652f\u3002\u9996\u5148\uff0c\u5c06\u66f4\u6539\u63a8\u9001\u5230\u4f60\u7684GitHub\u4ed3\u5e93\u4e2d\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528Git\u547d\u4ee4\u884c\u5de5\u5177\u6765\u5b8c\u6210\uff1a git add -A \uff1a\u6dfb\u52a0\u6240\u6709\u4fee\u6539\u7684\u6587\u4ef6 git commit -m &#8220;\u63cf\u8ff0\u4f60\u7684\u66f4\u6539&#8221; git push origin \u5206\u652f\u540d \uff1a\u5c06\u66f4\u6539\u63a8\u9001\u5230\u4f60\u7684GitHub\u4ed3\u5e93\u4e2d \u8bf7\u6ce8\u610f\uff0c\u4e0a\u8ff0\u547d\u4ee4\u4e2d\u7684\u201c\u5206\u652f\u540d\u201d\u662f\u4f60\u4ece\u539f\u59cb\u4ed3\u5e93\u4e2d\u6d3e\u751f\u7684\u5206\u652f\u540d\u79f0\u3002 \u63a5\u4e0b\u6765\uff0c\u4f60\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u62c9\u53d6\u8bf7\u6c42\u6765\u5c06\u4f60\u7684\u66f4\u6539\u5408\u5e76\u56de\u539f\u59cb\u4ed3\u5e93\u7684\u4e3b\u5206\u652f\u4e2d\u3002\u5728GitHub\u4ed3\u5e93\u9875\u9762\u4e0a\uff0c\u70b9\u51fb\u201cPull requests\u201d\u5e76\u9009\u62e9\u201cNew pull request\u201d\u3002\u9009\u62e9\u8981\u5408\u5e76\u7684\u5206\u652f\u5e76\u67e5\u770b\u66f4\u6539\u6458\u8981\u3002\u4f60\u4e5f\u53ef\u4ee5\u6dfb\u52a0\u6ce8\u91ca\u548c\u8bf4\u660e\u6765\u5e2e\u52a9\u5176\u4ed6\u5f00\u53d1\u8005\u66f4\u597d\u5730\u7406\u89e3\u4f60\u7684\u66f4\u6539\u3002 \u4e00\u65e6\u8bc4\u5ba1\u8005\u6279\u51c6\u4e86\u62c9\u53d6\u8bf7\u6c42\uff0c\u4f60\u7684\u66f4\u6539\u5c31\u4f1a\u88ab\u5408\u5e76\u5230\u539f\u59cb\u4ed3\u5e93\u4e2d\u3002\u8fd9\u662f\u4e00\u9879\u975e\u5e38\u6709\u7528\u7684\u529f\u80fd\uff0c\u56e0\u4e3a\u5b83\u5141\u8bb8\u4f60\u8d21\u732e\u4e8e\u5f00\u6e90\u9879\u76ee\uff0c\u5e2e\u52a9\u6539\u8fdb\u8f6f\u4ef6\u5e76\u4e0e\u5168\u4e16\u754c\u7684\u5f00\u53d1\u8005\u4ea4\u6d41\u3002 \u5728\u63d0\u4ea4\u4fee\u6539\u65f6\uff0c\u8bf7\u59cb\u7ec8\u786e\u4fdd\u4f60\u7684\u66f4\u6539\u662f\u5b8c\u5168\u6d4b\u8bd5\u8fc7\u7684\uff0c\u5e76\u4e14\u4e0e\u539f\u59cb\u4ee3\u7801\u76f8\u5bb9\u3002\u540c\u65f6\uff0c\u5c0a\u91cd\u539f\u521b\u4f5c\u8005\u7684\u8457\u4f5c\u6743\u3002\u6211\u4eec\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u8ba9\u4f60\u66f4\u597d\u5730\u4f7f\u7528GitHub\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002 \u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u5728GitHub\u4e0a\u63d0\u4ea4\u4fee\u6539\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-19353","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=19353"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19353\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=19353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=19353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=19353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}