{"id":19864,"date":"2024-11-19T08:20:00","date_gmt":"2024-11-19T00:20:00","guid":{"rendered":"https:\/\/fwq.ai\/blog\/19864\/"},"modified":"2024-11-19T08:20:00","modified_gmt":"2024-11-19T00:20:00","slug":"gitee%e9%a1%b9%e7%9b%ae%e4%b8%8a%e5%a6%82%e4%bd%95%e6%8f%90%e4%ba%a4%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/19864\/","title":{"rendered":"gitee\u9879\u76ee\u4e0a\u5982\u4f55\u63d0\u4ea4\u4ee3\u7801"},"content":{"rendered":"<p>\u5728\u5f00\u6e90\u8f6f\u4ef6\u5f00\u53d1\u4e2d\uff0cgitee \u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u4ee3\u7801\u6258\u7ba1\u5e73\u53f0\u3002\u5728\u8fd9\u4e2a\u5e73\u53f0\u4e0a\uff0c\u4f60\u53ef\u4ee5\u5206\u4eab\u4f60\u7684\u4ee3\u7801\u3001\u4e0e\u5f00\u53d1\u8005\u8fdb\u884c\u4ea4\u6d41\uff0c\u5e76\u53c2\u4e0e\u5f00\u6e90\u793e\u533a\u4e2d\u7684\u9879\u76ee\u3002\u672c\u6587\u5c06\u5411\u4f60\u4ecb\u7ecd\u5982\u4f55\u5728 gitee \u4e0a\u63d0\u4ea4\u4ee3\u7801\u3002<\/p>\n<ol>\n<li>\u521b\u5efa\u4e00\u4e2a\u8d26\u6237<\/li>\n<\/ol>\n<p>\u7b2c\u4e00\u6b65\uff0c\u4f60\u9700\u8981\u5728 Gitee \u4e0a\u521b\u5efa\u4e00\u4e2a\u8d26\u6237\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4f60\u7684 GitHub\u3001\u5fae\u4fe1\u3001QQ \u7b49\u8d26\u6237\u8fdb\u884c\u6ce8\u518c\uff0c\u6216\u8005\u4f7f\u7528\u4f60\u7684\u90ae\u7bb1\u6ce8\u518c\u3002<\/p>\n<ol>\n<li>\u521b\u5efa\u4e00\u4e2a\u65b0\u9879\u76ee<\/li>\n<\/ol>\n<p>\u5728\u6ce8\u518c\u6210\u529f\u540e\uff0c\u4f60\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u9879\u76ee\u3002\u70b9\u51fb Gitee \u7684\u4e3b\u9875\u4e0a\u7684\u201c\u65b0\u5efa\u4ed3\u5e93\u201d\u6309\u94ae\uff0c\u586b\u5199\u76f8\u5173\u9879\u76ee\u4fe1\u606f\uff0c\u5982\u9879\u76ee\u540d\u79f0\u3001\u63cf\u8ff0\u3001\u6240\u5c5e\u7ec4\u7ec7\u6216\u8005\u4e2a\u4eba\u7b49\u7b49\u3002\u5728\u8fd9\u91cc\uff0c\u4f60\u540c\u6837\u9700\u8981\u9009\u62e9\u4f7f\u7528 Git \u8fd8\u662f SVN \u7ba1\u7406\u4f60\u7684\u4ee3\u7801\u3002<\/p>\n<ol>\n<li>\u521b\u5efa\u5206\u652f<\/li>\n<\/ol>\n<p>\u5728\u4f60\u7684\u9879\u76ee\u4e2d\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5206\u652f\u6765\u63d0\u4ea4\u4fee\u6539\u3002\u4f60\u53ef\u4ee5\u9009\u62e9\u6839\u636e\u4f60\u7684\u9700\u6c42\u521b\u5efa\u591a\u4e2a\u5206\u652f\uff0c\u6bd4\u5982\u5f00\u53d1\u5206\u652f\u3001\u6d4b\u8bd5\u5206\u652f\u3001\u4ee5\u53ca\u7ebf\u4e0a\u5206\u652f\u3002<\/p>\n<ol>\n<li>Clone \u9879\u76ee<\/li>\n<\/ol>\n<p>\u5728\u5f00\u53d1\u524d\uff0c\u4f60\u9700\u8981\u5c06\u9879\u76ee\u514b\u9686\u5230\u672c\u5730\u3002\u8fdb\u5165\u5230\u8be5\u9879\u76ee\u9875\u9762\uff0c\u5728\u9875\u9762\u4e0b\u65b9\u70b9\u51fb\u201c\u590d\u5236\u9879\u76ee\u201d\u6309\u94ae\uff0c\u7136\u540e\u590d\u5236 SSH \u6216\u8005 HTTPS \u7684\u94fe\u63a5\u5730\u5740\uff0c\u5728\u672c\u5730\u7ec8\u7aef\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>git clone [repository url]<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u8fd9\u6837\u5c31\u5c06\u4ee3\u7801\u514b\u9686\u5230\u672c\u5730\u4e86\u3002<\/p>\n<ol>\n<li>\u6dfb\u52a0\u548c\u63d0\u4ea4\u4ee3\u7801<\/li>\n<\/ol>\n<p>\u5728\u672c\u5730\u4fee\u6539\u4ee3\u7801\u540e\uff0c\u4f60\u9700\u8981\u4f7f\u7528 Git \u6765\u6dfb\u52a0\u548c\u63d0\u4ea4\u4f60\u7684\u4fee\u6539\u3002<\/p>\n<ul>\n<li>\u7528 git add \u547d\u4ee4\u5c06\u672c\u5730\u7684\u4fee\u6539\u6dfb\u52a0\u5230 Git \u4e2d\u7c7b\u4f3c\u4e8e\u4e00\u4e2a\u6682\u5b58\u533a\u57df\uff1a<\/li>\n<\/ul>\n<pre>git add .<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<ul>\n<li>\u7136\u540e\u7528 git commit \u547d\u4ee4\u5c06\u6682\u5b58\u533a\u57df\u4e2d\u7684\u4fee\u6539\u63d0\u4ea4\u5230\u672c\u5730\u4ed3\u5e93\u4e2d\uff1a<\/li>\n<\/ul>\n<pre>git commit -m \"\u6dfb\u52a0\u6ce8\u91ca\"<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<ol>\n<li>Push \u4ee3\u7801<\/li>\n<\/ol>\n<p>\u5728\u5c06\u4fee\u6539\u63d0\u4ea4\u5230\u672c\u5730\u4ed3\u5e93\u540e\uff0c\u4f60\u9700\u8981\u5c06\u4ee3\u7801\u63a8\u9001\u5230\u4f60\u7684 Gitee \u9879\u76ee\u4e2d\u3002\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>git push origin [branch]<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5176\u4e2d\uff0cbranch \u8868\u793a\u4f60\u6240\u63d0\u4ea4\u7684\u4ee3\u7801\u7684\u5206\u652f\u3002<\/p>\n<ol>\n<li>\u63d0\u4ea4 Pull Request<\/li>\n<\/ol>\n<p>\u5982\u679c\u4f60\u53c2\u4e0e\u522b\u4eba\u6216\u8005\u7ec4\u7ec7\u7684\u9879\u76ee\u4e2d\uff0c\u4f60\u9700\u8981\u63d0\u4ea4\u4e00\u4e2a Pull Request \u6765\u7533\u8bf7\u5408\u5e76\u4f60\u7684\u4fee\u6539\u3002\u8fdb\u5165\u5230\u8be5\u9879\u76ee\u9875\u9762\uff0c\u70b9\u51fb\u201cPull Request\u201d\u6309\u94ae\uff0c\u7136\u540e\u586b\u5199\u4e00\u4e9b\u5fc5\u8981\u7684\u4fe1\u606f\uff0c\u5982\u9879\u76ee\u540d\u79f0\u3001\u4fee\u6539\u63cf\u8ff0\u4ee5\u53ca\u4f60\u8981\u5408\u5e76\u5230\u7684\u5206\u652f\u540d\u79f0\uff0c\u6700\u540e\u70b9\u51fb\u201c\u521b\u5efa Pull Request\u201d\u63d0\u4ea4\u8bf7\u6c42\u5373\u53ef\u3002<\/p>\n<p>\u6709\u4e86\u4ee5\u4e0a\u7684\u6b65\u9aa4\uff0c\u5c31\u80fd\u5728 Gitee \u4e0a\u6210\u529f\u63d0\u4ea4\u4ee3\u7801\u4e86\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fgitee\u9879\u76ee\u4e0a\u5982\u4f55\u63d0\u4ea4\u4ee3\u7801\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>\u5728\u5f00\u6e90\u8f6f\u4ef6\u5f00\u53d1\u4e2d\uff0cgitee \u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u4ee3\u7801\u6258\u7ba1\u5e73\u53f0\u3002\u5728\u8fd9\u4e2a\u5e73\u53f0\u4e0a\uff0c\u4f60\u53ef\u4ee5\u5206\u4eab\u4f60\u7684\u4ee3\u7801\u3001\u4e0e\u5f00\u53d1\u8005\u8fdb\u884c\u4ea4\u6d41\uff0c\u5e76\u53c2\u4e0e\u5f00\u6e90\u793e\u533a\u4e2d\u7684\u9879\u76ee\u3002\u672c\u6587\u5c06\u5411\u4f60\u4ecb\u7ecd\u5982\u4f55\u5728 gitee \u4e0a\u63d0\u4ea4\u4ee3\u7801\u3002 \u521b\u5efa\u4e00\u4e2a\u8d26\u6237 \u7b2c\u4e00\u6b65\uff0c\u4f60\u9700\u8981\u5728 Gitee \u4e0a\u521b\u5efa\u4e00\u4e2a\u8d26\u6237\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4f60\u7684 GitHub\u3001\u5fae\u4fe1\u3001QQ \u7b49\u8d26\u6237\u8fdb\u884c\u6ce8\u518c\uff0c\u6216\u8005\u4f7f\u7528\u4f60\u7684\u90ae\u7bb1\u6ce8\u518c\u3002 \u521b\u5efa\u4e00\u4e2a\u65b0\u9879\u76ee \u5728\u6ce8\u518c\u6210\u529f\u540e\uff0c\u4f60\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u9879\u76ee\u3002\u70b9\u51fb Gitee \u7684\u4e3b\u9875\u4e0a\u7684\u201c\u65b0\u5efa\u4ed3\u5e93\u201d\u6309\u94ae\uff0c\u586b\u5199\u76f8\u5173\u9879\u76ee\u4fe1\u606f\uff0c\u5982\u9879\u76ee\u540d\u79f0\u3001\u63cf\u8ff0\u3001\u6240\u5c5e\u7ec4\u7ec7\u6216\u8005\u4e2a\u4eba\u7b49\u7b49\u3002\u5728\u8fd9\u91cc\uff0c\u4f60\u540c\u6837\u9700\u8981\u9009\u62e9\u4f7f\u7528 Git \u8fd8\u662f SVN \u7ba1\u7406\u4f60\u7684\u4ee3\u7801\u3002 \u521b\u5efa\u5206\u652f \u5728\u4f60\u7684\u9879\u76ee\u4e2d\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5206\u652f\u6765\u63d0\u4ea4\u4fee\u6539\u3002\u4f60\u53ef\u4ee5\u9009\u62e9\u6839\u636e\u4f60\u7684\u9700\u6c42\u521b\u5efa\u591a\u4e2a\u5206\u652f\uff0c\u6bd4\u5982\u5f00\u53d1\u5206\u652f\u3001\u6d4b\u8bd5\u5206\u652f\u3001\u4ee5\u53ca\u7ebf\u4e0a\u5206\u652f\u3002 Clone \u9879\u76ee \u5728\u5f00\u53d1\u524d\uff0c\u4f60\u9700\u8981\u5c06\u9879\u76ee\u514b\u9686\u5230\u672c\u5730\u3002\u8fdb\u5165\u5230\u8be5\u9879\u76ee\u9875\u9762\uff0c\u5728\u9875\u9762\u4e0b\u65b9\u70b9\u51fb\u201c\u590d\u5236\u9879\u76ee\u201d\u6309\u94ae\uff0c\u7136\u540e\u590d\u5236 SSH \u6216\u8005 HTTPS \u7684\u94fe\u63a5\u5730\u5740\uff0c\u5728\u672c\u5730\u7ec8\u7aef\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\uff1a git clone [repository url] \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u6837\u5c31\u5c06\u4ee3\u7801\u514b\u9686\u5230\u672c\u5730\u4e86\u3002 \u6dfb\u52a0\u548c\u63d0\u4ea4\u4ee3\u7801 \u5728\u672c\u5730\u4fee\u6539\u4ee3\u7801\u540e\uff0c\u4f60\u9700\u8981\u4f7f\u7528 Git \u6765\u6dfb\u52a0\u548c\u63d0\u4ea4\u4f60\u7684\u4fee\u6539\u3002 \u7528 git add \u547d\u4ee4\u5c06\u672c\u5730\u7684\u4fee\u6539\u6dfb\u52a0\u5230 Git \u4e2d\u7c7b\u4f3c\u4e8e\u4e00\u4e2a\u6682\u5b58\u533a\u57df\uff1a git add . \u767b\u5f55\u540e\u590d\u5236 \u7136\u540e\u7528 git commit \u547d\u4ee4\u5c06\u6682\u5b58\u533a\u57df\u4e2d\u7684\u4fee\u6539\u63d0\u4ea4\u5230\u672c\u5730\u4ed3\u5e93\u4e2d\uff1a git commit -m &#8220;\u6dfb\u52a0\u6ce8\u91ca&#8221; [&hellip;]<\/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-19864","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19864","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=19864"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19864\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=19864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=19864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=19864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}