{"id":20182,"date":"2024-11-19T08:30:48","date_gmt":"2024-11-19T00:30:48","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20182\/"},"modified":"2024-11-19T08:30:48","modified_gmt":"2024-11-19T00:30:48","slug":"github%e6%80%8e%e4%b9%88%e6%9b%b4%e6%96%b0%e4%bb%93%e5%ba%93","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20182\/","title":{"rendered":"github\u600e\u4e48\u66f4\u65b0\u4ed3\u5e93"},"content":{"rendered":"<p>github\u662f\u5168\u7403\u6700\u5927\u7684\u4ee3\u7801\u6258\u7ba1\u5e73\u53f0\u4e4b\u4e00\uff0c\u5b83\u7684\u4f7f\u7528\u65b9\u4fbf\u3001\u529f\u80fd\u5f3a\u5927\uff0c\u53d7\u5230\u4e86\u5168\u7403\u7a0b\u5e8f\u5458\u7684\u559c\u7231\u3002\u5728\u8fd9\u4e2a\u5e73\u53f0\u4e0a\uff0c\u5927\u5bb6\u53ef\u4ee5\u521b\u5efa\u81ea\u5df1\u7684\u4ee3\u7801\u4ed3\u5e93\uff0c\u8bb0\u5f55\u81ea\u5df1\u7684\u7f16\u7801\u5386\u7a0b\uff0c\u5206\u4eab\u81ea\u5df1\u7684\u4ee3\u7801\uff0c\u5e76\u4e0e\u5176\u4ed6\u5f00\u53d1\u8005\u8fdb\u884c\u534f\u4f5c\u3002\u5982\u4f55\u66f4\u65b0\u4ed3\u5e93\uff0c\u662f\u4f7f\u7528github\u7684\u5f00\u53d1\u8005\u4eec\u5fc5\u987b\u638c\u63e1\u7684\u57fa\u672c\u64cd\u4f5c\u3002\u672c\u6587\u5c06\u4ece\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u6765\u4ecb\u7ecd\u5982\u4f55\u66f4\u65b0github\u4ed3\u5e93\u3002<\/p>\n<h4>\u4e00\u3001\u4f7f\u7528GitHub Desktop\u66f4\u65b0\u4ed3\u5e93<\/h4>\n<p>GitHub Desktop\u662f\u4e00\u79cd\u5f00\u6e90\u7684GitHub\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff0c\u5b83\u53ef\u4ee5\u8ba9\u60a8\u7ba1\u7406GitHub\u5b58\u50a8\u5e93\u7684\u7248\u672c\u63a7\u5236\u548c\u5408\u5e76\u66f4\u6539\u3002\u4f7f\u7528GitHub Desktop\u66f4\u65b0\u4ed3\u5e93\uff0c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u6253\u5f00GitHub Desktop\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u767b\u5f55\u60a8\u7684GitHub\u8d26\u6237\u3002<\/li>\n<li>\u9009\u62e9\u8981\u66f4\u65b0\u7684\u4ed3\u5e93\uff0c\u70b9\u51fb&#8221;Fetch Origin&#8221;\uff0c\u5c06\u8fdc\u7a0b\u7684\u4ee3\u7801\u66f4\u65b0\u5230\u672c\u5730\u4ed3\u5e93\u3002<\/li>\n<li>\u5982\u679c\u60a8\u66f4\u6539\u4e86\u672c\u5730\u4ed3\u5e93\u7684\u4ee3\u7801\uff0c\u90a3\u4e48\u5728\u63d0\u4ea4\u66f4\u65b0\u4e4b\u524d\uff0c\u5e94\u5148\u63d0\u4ea4\u66f4\u6539\u3002\u5728\u5bf9\u8bdd\u6846\u4e2d\u8f93\u5165\u63cf\u8ff0\uff0c\u9009\u62e9\u8981\u63d0\u4ea4\u7684\u66f4\u6539\uff0c\u5e76\u70b9\u51fb&#8221;Commit&#8221;\u3002<\/li>\n<li>\u5728\u672c\u5730\u4ed3\u5e93\u4e2d\u63d0\u4ea4\u66f4\u6539\u540e\uff0c\u60a8\u9700\u8981\u5c06\u8fd9\u4e9b\u66f4\u6539\u63a8\u9001\u5230\u8fdc\u7a0b\u4ed3\u5e93\u3002\u70b9\u51fb&#8221;Push Origin&#8221;\uff0c\u7136\u540e\u7b49\u5f85\u64cd\u4f5c\u5b8c\u6210\u3002<\/li>\n<li>\u5237\u65b0GitHub\u9875\u9762\uff0c\u4fbf\u53ef\u770b\u5230\u5df2\u66f4\u65b0\u7684\u4ed3\u5e93\u5185\u5bb9\u3002<\/li>\n<\/ol>\n<h4>\u4e8c\u3001\u4f7f\u7528Git\u547d\u4ee4\u884c\u66f4\u65b0\u4ed3\u5e93<\/h4>\n<p>Git\u547d\u4ee4\u884c\u662f\u4e00\u79cd\u8de8\u5e73\u53f0\u7684\u7248\u672c\u63a7\u5236\u5de5\u5177\uff0c\u5b83\u662fGitHub\u7684\u6838\u5fc3\u7ec4\u4ef6\u4e4b\u4e00\uff0c\u4e5f\u662f\u8bb8\u591a\u5f00\u53d1\u8005\u7ecf\u5e38\u4f7f\u7528\u7684\u65b9\u5f0f\u3002\u4f7f\u7528Git\u547d\u4ee4\u884c\u66f4\u65b0\u4ed3\u5e93\uff0c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u6253\u5f00\u7ec8\u7aef\u6216\u63a7\u5236\u53f0\uff0c\u5e76\u8fdb\u5165\u5df2\u514b\u9686\u7684\u672c\u5730\u4ed3\u5e93\u3002<\/li>\n<li>\u4ece\u8fdc\u7a0b\u4ed3\u5e93\u4e2d\u83b7\u53d6\u6700\u65b0\u7684\u53d8\u5316\uff0c\u4f7f\u7528\u547d\u4ee4&#8221;git fetch&#8221;\u3002<\/li>\n<li>\u5c06\u672c\u5730\u7684\u5206\u652f\u66f4\u65b0\u5230\u6700\u65b0\u7684\u8fdc\u7a0b\u72b6\u6001\uff0c\u4f7f\u7528\u547d\u4ee4&#8221;git merge&#8221;\u3002<\/li>\n<li>\u5982\u679c\u60a8\u5df2\u66f4\u6539\u4e86\u672c\u5730\u4ed3\u5e93\u7684\u4ee3\u7801\uff0c\u90a3\u4e48\u5728\u63d0\u4ea4\u66f4\u65b0\u4e4b\u524d\uff0c\u5e94\u5148\u63d0\u4ea4\u66f4\u6539\u3002\u4f7f\u7528\u547d\u4ee4&#8221;git commit&#8221;\u5c06\u66f4\u6539\u63d0\u4ea4\u5230\u672c\u5730\u4ed3\u5e93\u3002<\/li>\n<li>\u5c06\u672c\u5730\u4ed3\u5e93\u7684\u66f4\u6539\u63a8\u9001\u5230\u8fdc\u7a0b\u4ed3\u5e93\uff0c\u4f7f\u7528\u547d\u4ee4&#8221;git push&#8221;\u3002<\/li>\n<li>\u5237\u65b0GitHub\u9875\u9762\uff0c\u4fbf\u53ef\u770b\u5230\u5df2\u66f4\u65b0\u7684\u4ed3\u5e93\u5185\u5bb9\u3002<\/li>\n<\/ol>\n<h4>\u4e09\u3001\u4f7f\u7528GitHub\u7f51\u9875\u7248\u66f4\u65b0\u4ed3\u5e93<\/h4>\n<p>\u5982\u679c\u60a8\u4ec5\u9700\u8981\u8fdb\u884c\u5c0f\u578b\u4ee3\u7801\u66f4\u6539\u6216\u6ca1\u6709\u672c\u5730\u4ed3\u5e93\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528GitHub\u7f51\u9875\u7248\u6765\u66f4\u65b0\u4ed3\u5e93\u3002\u4f7f\u7528GitHub\u7f51\u9875\u7248\u66f4\u65b0\u4ed3\u5e93\uff0c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00GitHub\u7f51\u7ad9\uff0c\u5e76\u767b\u5f55\u60a8\u7684GitHub\u8d26\u6237\u3002<\/li>\n<li>\u9009\u62e9\u8981\u66f4\u65b0\u7684\u4ed3\u5e93\uff0c\u70b9\u51fb&#8221;Edit File&#8221;\u3002<\/li>\n<li>\u5728\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u8fdb\u884c\u66f4\u6539\uff0c\u4fdd\u5b58\u66f4\u6539\uff0c\u5e76\u8f93\u5165\u4e00\u4e2a\u63cf\u8ff0\u3002<\/li>\n<li>\u70b9\u51fb&#8221;Commit Changes&#8221;\uff0c\u5c06\u66f4\u6539\u63d0\u4ea4\u5230\u8fdc\u7a0b\u4ed3\u5e93\u3002<\/li>\n<li>\u5237\u65b0GitHub\u9875\u9762\uff0c\u4fbf\u53ef\u770b\u5230\u5df2\u66f4\u65b0\u7684\u4ed3\u5e93\u5185\u5bb9\u3002<\/li>\n<\/ol>\n<p>\u603b\u4e4b\uff0c\u65e0\u8bba\u4f7f\u7528\u4f55\u79cd\u65b9\u5f0f\uff0c\u66f4\u65b0GitHub\u4ed3\u5e93\u90fd\u662f\u57fa\u672c\u800c\u91cd\u8981\u7684\u64cd\u4f5c\u3002\u53ea\u6709\u7ecf\u5e38\u66f4\u65b0\u4ed3\u5e93\uff0c\u6211\u4eec\u624d\u80fd\u8bb0\u5f55\u4e0b\u81ea\u5df1\u7684\u7f16\u7801\u5386\u7a0b\uff0c\u4fdd\u8bc1\u56e2\u961f\u534f\u4f5c\u7684\u987a\u7545\u3002\u5e0c\u671b\u672c\u6587\u4ecb\u7ecd\u7684\u64cd\u4f5c\u80fd\u591f\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u4f7f\u7528GitHub\uff0c\u63d0\u9ad8\u56e2\u961f\u7684\u7f16\u7801\u6548\u7387\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fgithub\u600e\u4e48\u66f4\u65b0\u4ed3\u5e93\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\u5168\u7403\u6700\u5927\u7684\u4ee3\u7801\u6258\u7ba1\u5e73\u53f0\u4e4b\u4e00\uff0c\u5b83\u7684\u4f7f\u7528\u65b9\u4fbf\u3001\u529f\u80fd\u5f3a\u5927\uff0c\u53d7\u5230\u4e86\u5168\u7403\u7a0b\u5e8f\u5458\u7684\u559c\u7231\u3002\u5728\u8fd9\u4e2a\u5e73\u53f0\u4e0a\uff0c\u5927\u5bb6\u53ef\u4ee5\u521b\u5efa\u81ea\u5df1\u7684\u4ee3\u7801\u4ed3\u5e93\uff0c\u8bb0\u5f55\u81ea\u5df1\u7684\u7f16\u7801\u5386\u7a0b\uff0c\u5206\u4eab\u81ea\u5df1\u7684\u4ee3\u7801\uff0c\u5e76\u4e0e\u5176\u4ed6\u5f00\u53d1\u8005\u8fdb\u884c\u534f\u4f5c\u3002\u5982\u4f55\u66f4\u65b0\u4ed3\u5e93\uff0c\u662f\u4f7f\u7528github\u7684\u5f00\u53d1\u8005\u4eec\u5fc5\u987b\u638c\u63e1\u7684\u57fa\u672c\u64cd\u4f5c\u3002\u672c\u6587\u5c06\u4ece\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u6765\u4ecb\u7ecd\u5982\u4f55\u66f4\u65b0github\u4ed3\u5e93\u3002 \u4e00\u3001\u4f7f\u7528GitHub Desktop\u66f4\u65b0\u4ed3\u5e93 GitHub Desktop\u662f\u4e00\u79cd\u5f00\u6e90\u7684GitHub\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff0c\u5b83\u53ef\u4ee5\u8ba9\u60a8\u7ba1\u7406GitHub\u5b58\u50a8\u5e93\u7684\u7248\u672c\u63a7\u5236\u548c\u5408\u5e76\u66f4\u6539\u3002\u4f7f\u7528GitHub Desktop\u66f4\u65b0\u4ed3\u5e93\uff0c\u6b65\u9aa4\u5982\u4e0b\uff1a \u6253\u5f00GitHub Desktop\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u767b\u5f55\u60a8\u7684GitHub\u8d26\u6237\u3002 \u9009\u62e9\u8981\u66f4\u65b0\u7684\u4ed3\u5e93\uff0c\u70b9\u51fb&#8221;Fetch Origin&#8221;\uff0c\u5c06\u8fdc\u7a0b\u7684\u4ee3\u7801\u66f4\u65b0\u5230\u672c\u5730\u4ed3\u5e93\u3002 \u5982\u679c\u60a8\u66f4\u6539\u4e86\u672c\u5730\u4ed3\u5e93\u7684\u4ee3\u7801\uff0c\u90a3\u4e48\u5728\u63d0\u4ea4\u66f4\u65b0\u4e4b\u524d\uff0c\u5e94\u5148\u63d0\u4ea4\u66f4\u6539\u3002\u5728\u5bf9\u8bdd\u6846\u4e2d\u8f93\u5165\u63cf\u8ff0\uff0c\u9009\u62e9\u8981\u63d0\u4ea4\u7684\u66f4\u6539\uff0c\u5e76\u70b9\u51fb&#8221;Commit&#8221;\u3002 \u5728\u672c\u5730\u4ed3\u5e93\u4e2d\u63d0\u4ea4\u66f4\u6539\u540e\uff0c\u60a8\u9700\u8981\u5c06\u8fd9\u4e9b\u66f4\u6539\u63a8\u9001\u5230\u8fdc\u7a0b\u4ed3\u5e93\u3002\u70b9\u51fb&#8221;Push Origin&#8221;\uff0c\u7136\u540e\u7b49\u5f85\u64cd\u4f5c\u5b8c\u6210\u3002 \u5237\u65b0GitHub\u9875\u9762\uff0c\u4fbf\u53ef\u770b\u5230\u5df2\u66f4\u65b0\u7684\u4ed3\u5e93\u5185\u5bb9\u3002 \u4e8c\u3001\u4f7f\u7528Git\u547d\u4ee4\u884c\u66f4\u65b0\u4ed3\u5e93 Git\u547d\u4ee4\u884c\u662f\u4e00\u79cd\u8de8\u5e73\u53f0\u7684\u7248\u672c\u63a7\u5236\u5de5\u5177\uff0c\u5b83\u662fGitHub\u7684\u6838\u5fc3\u7ec4\u4ef6\u4e4b\u4e00\uff0c\u4e5f\u662f\u8bb8\u591a\u5f00\u53d1\u8005\u7ecf\u5e38\u4f7f\u7528\u7684\u65b9\u5f0f\u3002\u4f7f\u7528Git\u547d\u4ee4\u884c\u66f4\u65b0\u4ed3\u5e93\uff0c\u6b65\u9aa4\u5982\u4e0b\uff1a \u6253\u5f00\u7ec8\u7aef\u6216\u63a7\u5236\u53f0\uff0c\u5e76\u8fdb\u5165\u5df2\u514b\u9686\u7684\u672c\u5730\u4ed3\u5e93\u3002 \u4ece\u8fdc\u7a0b\u4ed3\u5e93\u4e2d\u83b7\u53d6\u6700\u65b0\u7684\u53d8\u5316\uff0c\u4f7f\u7528\u547d\u4ee4&#8221;git fetch&#8221;\u3002 \u5c06\u672c\u5730\u7684\u5206\u652f\u66f4\u65b0\u5230\u6700\u65b0\u7684\u8fdc\u7a0b\u72b6\u6001\uff0c\u4f7f\u7528\u547d\u4ee4&#8221;git merge&#8221;\u3002 \u5982\u679c\u60a8\u5df2\u66f4\u6539\u4e86\u672c\u5730\u4ed3\u5e93\u7684\u4ee3\u7801\uff0c\u90a3\u4e48\u5728\u63d0\u4ea4\u66f4\u65b0\u4e4b\u524d\uff0c\u5e94\u5148\u63d0\u4ea4\u66f4\u6539\u3002\u4f7f\u7528\u547d\u4ee4&#8221;git commit&#8221;\u5c06\u66f4\u6539\u63d0\u4ea4\u5230\u672c\u5730\u4ed3\u5e93\u3002 \u5c06\u672c\u5730\u4ed3\u5e93\u7684\u66f4\u6539\u63a8\u9001\u5230\u8fdc\u7a0b\u4ed3\u5e93\uff0c\u4f7f\u7528\u547d\u4ee4&#8221;git push&#8221;\u3002 \u5237\u65b0GitHub\u9875\u9762\uff0c\u4fbf\u53ef\u770b\u5230\u5df2\u66f4\u65b0\u7684\u4ed3\u5e93\u5185\u5bb9\u3002 \u4e09\u3001\u4f7f\u7528GitHub\u7f51\u9875\u7248\u66f4\u65b0\u4ed3\u5e93 \u5982\u679c\u60a8\u4ec5\u9700\u8981\u8fdb\u884c\u5c0f\u578b\u4ee3\u7801\u66f4\u6539\u6216\u6ca1\u6709\u672c\u5730\u4ed3\u5e93\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528GitHub\u7f51\u9875\u7248\u6765\u66f4\u65b0\u4ed3\u5e93\u3002\u4f7f\u7528GitHub\u7f51\u9875\u7248\u66f4\u65b0\u4ed3\u5e93\uff0c\u6b65\u9aa4\u5982\u4e0b\uff1a \u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00GitHub\u7f51\u7ad9\uff0c\u5e76\u767b\u5f55\u60a8\u7684GitHub\u8d26\u6237\u3002 \u9009\u62e9\u8981\u66f4\u65b0\u7684\u4ed3\u5e93\uff0c\u70b9\u51fb&#8221;Edit File&#8221;\u3002 \u5728\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u8fdb\u884c\u66f4\u6539\uff0c\u4fdd\u5b58\u66f4\u6539\uff0c\u5e76\u8f93\u5165\u4e00\u4e2a\u63cf\u8ff0\u3002 \u70b9\u51fb&#8221;Commit Changes&#8221;\uff0c\u5c06\u66f4\u6539\u63d0\u4ea4\u5230\u8fdc\u7a0b\u4ed3\u5e93\u3002 \u5237\u65b0GitHub\u9875\u9762\uff0c\u4fbf\u53ef\u770b\u5230\u5df2\u66f4\u65b0\u7684\u4ed3\u5e93\u5185\u5bb9\u3002 \u603b\u4e4b\uff0c\u65e0\u8bba\u4f7f\u7528\u4f55\u79cd\u65b9\u5f0f\uff0c\u66f4\u65b0GitHub\u4ed3\u5e93\u90fd\u662f\u57fa\u672c\u800c\u91cd\u8981\u7684\u64cd\u4f5c\u3002\u53ea\u6709\u7ecf\u5e38\u66f4\u65b0\u4ed3\u5e93\uff0c\u6211\u4eec\u624d\u80fd\u8bb0\u5f55\u4e0b\u81ea\u5df1\u7684\u7f16\u7801\u5386\u7a0b\uff0c\u4fdd\u8bc1\u56e2\u961f\u534f\u4f5c\u7684\u987a\u7545\u3002\u5e0c\u671b\u672c\u6587\u4ecb\u7ecd\u7684\u64cd\u4f5c\u80fd\u591f\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u4f7f\u7528GitHub\uff0c\u63d0\u9ad8\u56e2\u961f\u7684\u7f16\u7801\u6548\u7387\u3002 \u4ee5\u4e0a\u5c31\u662fgithub\u600e\u4e48\u66f4\u65b0\u4ed3\u5e93\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-20182","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20182","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=20182"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20182\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}