{"id":19532,"date":"2024-11-19T16:24:48","date_gmt":"2024-11-19T08:24:48","guid":{"rendered":"https:\/\/fwq.ai\/blog\/19532\/"},"modified":"2024-11-19T16:24:48","modified_gmt":"2024-11-19T08:24:48","slug":"gitlab%e9%9c%80%e8%a6%81%e5%a4%9a%e5%a4%a7%e7%9a%84%e5%ad%98%e5%82%a8%e5%ae%b9%e9%87%8f%e6%89%8d%e5%90%88%e9%80%82","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/19532\/","title":{"rendered":"GitLab\u9700\u8981\u591a\u5927\u7684\u5b58\u50a8\u5bb9\u91cf\u624d\u5408\u9002"},"content":{"rendered":"<p>\u5728\u9009\u62e9gitlab\u7684\u5b58\u50a8\u5bb9\u91cf\u65f6\uff0c\u5f88\u591a\u4eba\u4f1a\u611f\u5230\u56f0\u60d1\u3002\u8fd9\u662f\u56e0\u4e3a\u5b58\u50a8\u5bb9\u91cf\u7684\u5927\u5c0f\u5bf9\u4e8egitlab\u9879\u76ee\u7684\u6210\u529f\u8fd0\u8425\u81f3\u5173\u91cd\u8981\u3002\u5982\u679c\u5b58\u50a8\u5bb9\u91cf\u8fc7\u5c0f\uff0cgitlab\u5c06\u65e0\u6cd5\u5b58\u50a8\u6240\u6709\u9700\u8981\u7684\u4ee3\u7801\u3001\u6587\u6863\u3001\u56fe\u7247\u548c\u5176\u4ed6\u6587\u4ef6\u3002\u53e6\u4e00\u65b9\u9762\uff0c\u5982\u679c\u5b58\u50a8\u5bb9\u91cf\u8fc7\u5927\uff0c\u5c31\u4f1a\u5bfc\u81f4\u8d44\u91d1\u6d6a\u8d39\u548c\u4e0d\u5fc5\u8981\u7684\u590d\u6742\u6027\u3002\u90a3\u4e48\uff0cgitlab\u9700\u8981\u591a\u5927\u7684\u5b58\u50a8\u5bb9\u91cf\u624d\u5408\u9002\u5462\uff1f<\/p>\n<p>\u9996\u5148\uff0c\u9700\u8981\u4e86\u89e3\u7684\u662f\uff0cGitLab\u7684\u5b58\u50a8\u5bb9\u91cf\u9700\u6c42\u56e0\u4f7f\u7528\u60c5\u51b5\u800c\u5f02\u3002\u4f8b\u5982\uff0c\u4e0e\u5c0f\u578b\u516c\u53f8\u76f8\u6bd4\uff0c\u5927\u578b\u516c\u53f8\u3001\u673a\u6784\u6216\u7ec4\u7ec7\u901a\u5e38\u6709\u66f4\u591a\u7684\u9879\u76ee\u548c\u66f4\u591a\u7684\u5f00\u53d1\u56e2\u961f\u3002\u56e0\u6b64\uff0c\u4ed6\u4eec\u9700\u8981\u66f4\u5927\u7684\u5b58\u50a8\u5bb9\u91cf\u6765\u5b58\u50a8\u6240\u6709\u7684\u4ee3\u7801\u3001\u6587\u6863\u548c\u5176\u4ed6\u6587\u4ef6\u3002<\/p>\n<p>\u8fd8\u9700\u8981\u8003\u8651\u5230\u5b58\u50a8\u5bb9\u91cf\u7684\u589e\u957f\u7387\u3002\u5982\u679c\u60a8\u7684\u516c\u53f8\u5904\u4e8e\u5feb\u901f\u589e\u957f\u9636\u6bb5\uff0c\u90a3\u4e48\u60a8\u9700\u8981\u9884\u7559\u66f4\u5927\u7684\u5b58\u50a8\u5bb9\u91cf\u4ee5\u9002\u5e94\u672a\u6765\u7684\u6269\u5c55\u3002\u5982\u679c\u60a8\u7684\u5b58\u50a8\u5bb9\u91cf\u4e0d\u8db3\uff0c\u60a8\u6700\u7ec8\u5c06\u9762\u4e34\u9700\u8981\u5347\u7ea7\u5b58\u50a8\u8bbe\u5907\u6216\u8f6c\u79fb\u5230\u66f4\u6602\u8d35\u7684\u4e91\u5b58\u50a8\u670d\u52a1\u7684\u95ee\u9898\u3002<\/p>\n<p>\u6b64\u5916\uff0cGitLab\u7684\u5b58\u50a8\u5bb9\u91cf\u5927\u5c0f\u8fd8\u53d6\u51b3\u4e8e\u9879\u76ee\u6240\u6d89\u53ca\u7684\u6587\u4ef6\u5927\u5c0f\u548c\u7c7b\u578b\u3002\u5bf9\u4e8e\u5927\u578b\u7684\u7ec4\u7ec7\u5f71\u50cf\u3001\u591a\u5a92\u4f53\u5185\u5bb9\u548c\u89c6\u9891\u7b49\u5927\u91cf\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u5c06\u5360\u7528\u66f4\u5927\u7684\u5b58\u50a8\u7a7a\u95f4\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5982\u679c\u4f60\u7684\u5b58\u50a8\u5bb9\u91cf\u5feb\u901f\u8fbe\u5230\u4e0a\u9650\uff0c\u5219\u9700\u8981\u8003\u8651\u4f7f\u7528\u7248\u672c\u63a7\u5236\u5916\u90e8\u5b58\u50a8\u5de5\u5177\uff0c\u5982Git LFS\uff08Git Large File Storage\uff09\u6765\u7ba1\u7406\u3002<\/p>\n<p>\u603b\u800c\u8a00\u4e4b\uff0c\u4e3a\u4e86\u9009\u62e9\u9002\u5f53\u7684GitLab\u5b58\u50a8\u5bb9\u91cf\u5927\u5c0f\uff0c\u60a8\u9700\u8981\u4e86\u89e3\u60a8\u516c\u53f8\u7684\u5b58\u50a8\u9700\u6c42\u3001\u9884\u8ba1\u7684\u589e\u957f\u7387\u4ee5\u53ca\u9879\u76ee\u7684\u6587\u4ef6\u5927\u5c0f\u548c\u7c7b\u578b\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u5bf9\u4e8e\u4e2d\u578b\u516c\u53f8\u6765\u8bf4\uff0c\u81f3\u5c11\u9700\u89811\u52302TB\u7684\u5b58\u50a8\u5bb9\u91cf\u3002\u800c\u5bf9\u4e8e\u5927\u578b\u516c\u53f8\uff0c\u53ef\u80fd\u9700\u89813TB\u4ee5\u4e0a\u7684\u5b58\u50a8\u5bb9\u91cf\u3002\u5728\u9009\u62e9\u5b58\u50a8\u5bb9\u91cf\u7684\u540c\u65f6\uff0c\u8fd8\u8981\u8003\u8651\u5230\u5b89\u5168\u5907\u4efd\u548c\u6545\u969c\u6062\u590d\u65b9\u9762\u3002\u4e3a\u4e86\u786e\u4fdd\u9879\u76ee\u7684\u8fde\u7eed\u6027\u548c\u6570\u636e\u7684\u5b89\u5168\u6027\uff0c\u6bcf\u4e2aGitLab\u5b9e\u4f8b\u90fd\u5e94\u8be5\u5177\u5907\u6709\u6548\u7684\u5907\u4efd\u548c\u6062\u590d\u673a\u5236\u3002<\/p>\n<p>\u603b\u4e4b\uff0c\u9009\u62e9GitLab\u5b58\u50a8\u5bb9\u91cf\u65f6\u9700\u8981\u7efc\u5408\u8003\u8651\u591a\u65b9\u9762\u56e0\u7d20\u3002\u4e00\u65e6\u60a8\u4e86\u89e3\u4e86\u516c\u53f8\u7684\u9700\u6c42\u548c\u589e\u957f\u8d8b\u52bf\uff0c\u60a8\u5c31\u53ef\u4ee5\u6839\u636e\u8fd9\u4e9b\u4fe1\u606f\u9009\u62e9\u5408\u9002\u7684\u5b58\u50a8\u5bb9\u91cf\u3002\u8bb0\u4f4f\u8981\u5c06\u5b89\u5168\u5907\u4efd\u548c\u6545\u969c\u6062\u590d\u4f5c\u4e3a\u91cd\u8981\u8003\u8651\u56e0\u7d20\u4e4b\u4e00\uff0c\u4ee5\u786e\u4fdd\u60a8\u7684\u9879\u76ee\u548c\u6570\u636e\u5b89\u5168\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fGitLab\u9700\u8981\u591a\u5927\u7684\u5b58\u50a8\u5bb9\u91cf\u624d\u5408\u9002\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\u9009\u62e9gitlab\u7684\u5b58\u50a8\u5bb9\u91cf\u65f6\uff0c\u5f88\u591a\u4eba\u4f1a\u611f\u5230\u56f0\u60d1\u3002\u8fd9\u662f\u56e0\u4e3a\u5b58\u50a8\u5bb9\u91cf\u7684\u5927\u5c0f\u5bf9\u4e8egitlab\u9879\u76ee\u7684\u6210\u529f\u8fd0\u8425\u81f3\u5173\u91cd\u8981\u3002\u5982\u679c\u5b58\u50a8\u5bb9\u91cf\u8fc7\u5c0f\uff0cgitlab\u5c06\u65e0\u6cd5\u5b58\u50a8\u6240\u6709\u9700\u8981\u7684\u4ee3\u7801\u3001\u6587\u6863\u3001\u56fe\u7247\u548c\u5176\u4ed6\u6587\u4ef6\u3002\u53e6\u4e00\u65b9\u9762\uff0c\u5982\u679c\u5b58\u50a8\u5bb9\u91cf\u8fc7\u5927\uff0c\u5c31\u4f1a\u5bfc\u81f4\u8d44\u91d1\u6d6a\u8d39\u548c\u4e0d\u5fc5\u8981\u7684\u590d\u6742\u6027\u3002\u90a3\u4e48\uff0cgitlab\u9700\u8981\u591a\u5927\u7684\u5b58\u50a8\u5bb9\u91cf\u624d\u5408\u9002\u5462\uff1f \u9996\u5148\uff0c\u9700\u8981\u4e86\u89e3\u7684\u662f\uff0cGitLab\u7684\u5b58\u50a8\u5bb9\u91cf\u9700\u6c42\u56e0\u4f7f\u7528\u60c5\u51b5\u800c\u5f02\u3002\u4f8b\u5982\uff0c\u4e0e\u5c0f\u578b\u516c\u53f8\u76f8\u6bd4\uff0c\u5927\u578b\u516c\u53f8\u3001\u673a\u6784\u6216\u7ec4\u7ec7\u901a\u5e38\u6709\u66f4\u591a\u7684\u9879\u76ee\u548c\u66f4\u591a\u7684\u5f00\u53d1\u56e2\u961f\u3002\u56e0\u6b64\uff0c\u4ed6\u4eec\u9700\u8981\u66f4\u5927\u7684\u5b58\u50a8\u5bb9\u91cf\u6765\u5b58\u50a8\u6240\u6709\u7684\u4ee3\u7801\u3001\u6587\u6863\u548c\u5176\u4ed6\u6587\u4ef6\u3002 \u8fd8\u9700\u8981\u8003\u8651\u5230\u5b58\u50a8\u5bb9\u91cf\u7684\u589e\u957f\u7387\u3002\u5982\u679c\u60a8\u7684\u516c\u53f8\u5904\u4e8e\u5feb\u901f\u589e\u957f\u9636\u6bb5\uff0c\u90a3\u4e48\u60a8\u9700\u8981\u9884\u7559\u66f4\u5927\u7684\u5b58\u50a8\u5bb9\u91cf\u4ee5\u9002\u5e94\u672a\u6765\u7684\u6269\u5c55\u3002\u5982\u679c\u60a8\u7684\u5b58\u50a8\u5bb9\u91cf\u4e0d\u8db3\uff0c\u60a8\u6700\u7ec8\u5c06\u9762\u4e34\u9700\u8981\u5347\u7ea7\u5b58\u50a8\u8bbe\u5907\u6216\u8f6c\u79fb\u5230\u66f4\u6602\u8d35\u7684\u4e91\u5b58\u50a8\u670d\u52a1\u7684\u95ee\u9898\u3002 \u6b64\u5916\uff0cGitLab\u7684\u5b58\u50a8\u5bb9\u91cf\u5927\u5c0f\u8fd8\u53d6\u51b3\u4e8e\u9879\u76ee\u6240\u6d89\u53ca\u7684\u6587\u4ef6\u5927\u5c0f\u548c\u7c7b\u578b\u3002\u5bf9\u4e8e\u5927\u578b\u7684\u7ec4\u7ec7\u5f71\u50cf\u3001\u591a\u5a92\u4f53\u5185\u5bb9\u548c\u89c6\u9891\u7b49\u5927\u91cf\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u5c06\u5360\u7528\u66f4\u5927\u7684\u5b58\u50a8\u7a7a\u95f4\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5982\u679c\u4f60\u7684\u5b58\u50a8\u5bb9\u91cf\u5feb\u901f\u8fbe\u5230\u4e0a\u9650\uff0c\u5219\u9700\u8981\u8003\u8651\u4f7f\u7528\u7248\u672c\u63a7\u5236\u5916\u90e8\u5b58\u50a8\u5de5\u5177\uff0c\u5982Git LFS\uff08Git Large File Storage\uff09\u6765\u7ba1\u7406\u3002 \u603b\u800c\u8a00\u4e4b\uff0c\u4e3a\u4e86\u9009\u62e9\u9002\u5f53\u7684GitLab\u5b58\u50a8\u5bb9\u91cf\u5927\u5c0f\uff0c\u60a8\u9700\u8981\u4e86\u89e3\u60a8\u516c\u53f8\u7684\u5b58\u50a8\u9700\u6c42\u3001\u9884\u8ba1\u7684\u589e\u957f\u7387\u4ee5\u53ca\u9879\u76ee\u7684\u6587\u4ef6\u5927\u5c0f\u548c\u7c7b\u578b\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u5bf9\u4e8e\u4e2d\u578b\u516c\u53f8\u6765\u8bf4\uff0c\u81f3\u5c11\u9700\u89811\u52302TB\u7684\u5b58\u50a8\u5bb9\u91cf\u3002\u800c\u5bf9\u4e8e\u5927\u578b\u516c\u53f8\uff0c\u53ef\u80fd\u9700\u89813TB\u4ee5\u4e0a\u7684\u5b58\u50a8\u5bb9\u91cf\u3002\u5728\u9009\u62e9\u5b58\u50a8\u5bb9\u91cf\u7684\u540c\u65f6\uff0c\u8fd8\u8981\u8003\u8651\u5230\u5b89\u5168\u5907\u4efd\u548c\u6545\u969c\u6062\u590d\u65b9\u9762\u3002\u4e3a\u4e86\u786e\u4fdd\u9879\u76ee\u7684\u8fde\u7eed\u6027\u548c\u6570\u636e\u7684\u5b89\u5168\u6027\uff0c\u6bcf\u4e2aGitLab\u5b9e\u4f8b\u90fd\u5e94\u8be5\u5177\u5907\u6709\u6548\u7684\u5907\u4efd\u548c\u6062\u590d\u673a\u5236\u3002 \u603b\u4e4b\uff0c\u9009\u62e9GitLab\u5b58\u50a8\u5bb9\u91cf\u65f6\u9700\u8981\u7efc\u5408\u8003\u8651\u591a\u65b9\u9762\u56e0\u7d20\u3002\u4e00\u65e6\u60a8\u4e86\u89e3\u4e86\u516c\u53f8\u7684\u9700\u6c42\u548c\u589e\u957f\u8d8b\u52bf\uff0c\u60a8\u5c31\u53ef\u4ee5\u6839\u636e\u8fd9\u4e9b\u4fe1\u606f\u9009\u62e9\u5408\u9002\u7684\u5b58\u50a8\u5bb9\u91cf\u3002\u8bb0\u4f4f\u8981\u5c06\u5b89\u5168\u5907\u4efd\u548c\u6545\u969c\u6062\u590d\u4f5c\u4e3a\u91cd\u8981\u8003\u8651\u56e0\u7d20\u4e4b\u4e00\uff0c\u4ee5\u786e\u4fdd\u60a8\u7684\u9879\u76ee\u548c\u6570\u636e\u5b89\u5168\u3002 \u4ee5\u4e0a\u5c31\u662fGitLab\u9700\u8981\u591a\u5927\u7684\u5b58\u50a8\u5bb9\u91cf\u624d\u5408\u9002\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-19532","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19532","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=19532"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19532\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=19532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=19532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=19532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}