{"id":57195,"date":"2023-10-17T14:27:21","date_gmt":"2023-10-17T06:27:21","guid":{"rendered":"https:\/\/docs.pingcode.com\/?p=57195"},"modified":"2023-10-17T14:27:22","modified_gmt":"2023-10-17T06:27:22","slug":"gitlab%e6%80%8e%e4%b9%88%e5%88%9b%e5%bb%ba%e8%b4%a6%e5%8f%b7","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/57195.html","title":{"rendered":"gitlab\u600e\u4e48\u521b\u5efa\u8d26\u53f7"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote\">\n<p>\u200b\u521b\u5efaGitLab\u8d26\u53f7\u9700\u8981\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\uff1a1. \u8bbf\u95eeGitLab\u5b98\u65b9\u7f51\u7ad9\uff1b2. \u70b9\u51fb\u201c\u6ce8\u518c\u201d\u6309\u94ae\uff1b3. \u586b\u5199\u6ce8\u518c\u4fe1\u606f\uff1b4. \u9a8c\u8bc1\u90ae\u7bb1\uff1b5. \u8bbe\u7f6e\u4e2a\u4eba\u4fe1\u606f\u548c\u9996\u9009\u9879\u3002\u9996\u5148\uff0c\u8bbf\u95eeGitLab\u7684\u5b98\u65b9\u7f51\u7ad9\u4ee5\u5f00\u59cb\u6ce8\u518c\u6d41\u7a0b\u3002<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">1.\u8bbf\u95eeGitLab\u5b98\u65b9\u7f51\u7ad9<\/h2>\n\n\n\n<p>\u521b\u5efaGitLab\u8d26\u53f7\u7684\u7b2c\u4e00\u6b65\u662f\u8bbf\u95ee\u5176\u5b98\u65b9\u7f51\u7ad9\u3002\u8f93\u5165<strong>https:\/\/www.gitlab.com<\/strong>\u5728\u6d4f\u89c8\u5668\u7684\u5730\u5740\u680f\u5e76\u6309\u56de\u8f66\u3002\u8fd9\u5c06\u6253\u5f00GitLab\u7684\u4e3b\u9875\u9762\uff0c\u51c6\u5907\u8fdb\u884c\u4e0b\u4e00\u6b65\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2.\u70b9\u51fb\u201c\u6ce8\u518c\u201d\u6309\u94ae<\/h2>\n\n\n\n<p>\u5728\u4e3b\u9875\u7684\u53f3\u4e0a\u89d2\uff0c\u4f60\u4f1a\u770b\u5230\u201c\u767b\u5f55\u201d\u548c\u201c\u6ce8\u518c\u201d\u4e24\u4e2a\u9009\u9879\u3002\u70b9\u51fb\u201c\u6ce8\u518c\u201d\u6309\u94ae\uff0c\u8fdb\u5165\u6ce8\u518c\u9875\u9762\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3.\u586b\u5199\u6ce8\u518c\u4fe1\u606f<\/h2>\n\n\n\n<p>\u5728\u6ce8\u518c\u9875\u9762\u4e0a\uff0c\u4f60\u9700\u8981\u586b\u5199\u4ee5\u4e0b\u4fe1\u606f\uff1a<\/p>\n\n\n\n<ul>\n<li><strong>\u90ae\u7bb1\u5730\u5740<\/strong>\uff1a\u8bf7\u8f93\u5165\u4e00\u4e2a\u6709\u6548\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002\u8fd9\u662f\u5c06\u7528\u4e8e\u63a5\u6536\u6240\u6709GitLab\u76f8\u5173\u7684\u901a\u77e5\u548c\u9a8c\u8bc1\u4fe1\u606f\u3002<\/li>\n\n\n\n<li><strong>\u5bc6\u7801<\/strong>\uff1a\u4e3a\u4f60\u7684\u8d26\u6237\u8bbe\u7f6e\u4e00\u4e2a\u5b89\u5168\u7684\u5bc6\u7801\u3002\u786e\u4fdd\u5b83\u81f3\u5c11\u5305\u542b8\u4e2a\u5b57\u7b26\uff0c\u5176\u4e2d\u5305\u62ec\u5927\u5c0f\u5199\u5b57\u6bcd\u3001\u6570\u5b57\u548c\u7279\u6b8a\u5b57\u7b26\uff0c\u4ee5\u63d0\u9ad8\u5b89\u5168\u6027\u3002<\/li>\n\n\n\n<li><strong>\u7528\u6237\u540d<\/strong>\uff1a\u9009\u62e9\u4e00\u4e2a\u552f\u4e00\u7684\u7528\u6237\u540d\u3002\u5b83\u5c06\u7528\u4f5c\u4f60\u7684GitLab\u4e2a\u4ebaURL\u7684\u4e00\u90e8\u5206\uff0c\u4f8b\u5982<strong>https:\/\/gitlab.com\/your_username<\/strong>\u3002 \u5b8c\u6210\u4fe1\u606f\u586b\u5199\u540e\uff0c\u70b9\u51fb\u201c\u6ce8\u518c\u201d\u6309\u94ae\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">4.\u9a8c\u8bc1\u90ae\u7bb1<\/h2>\n\n\n\n<p>\u5b8c\u6210\u6ce8\u518c\u4fe1\u606f\u540e\uff0cGitLab\u4f1a\u53d1\u9001\u4e00\u5c01\u9a8c\u8bc1\u90ae\u4ef6\u5230\u4f60\u7684\u90ae\u7bb1\u3002\u8fdb\u5165\u4f60\u7684\u7535\u5b50\u90ae\u4ef6\u8d26\u6237\uff0c\u67e5\u627eGitLab\u53d1\u9001\u7684\u90ae\u4ef6\u5e76\u70b9\u51fb\u5176\u4e2d\u7684\u9a8c\u8bc1\u94fe\u63a5\u3002\u8fd9\u5c06\u9a8c\u8bc1\u4f60\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u5e76\u6fc0\u6d3b\u4f60\u7684GitLab\u8d26\u6237\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5.\u8bbe\u7f6e\u4e2a\u4eba\u4fe1\u606f\u548c\u9996\u9009\u9879<\/h2>\n\n\n\n<p>\u4e00\u65e6\u4f60\u7684\u8d26\u6237\u88ab\u6fc0\u6d3b\uff0c\u4f60\u53ef\u4ee5\u767b\u5f55\u5e76\u8fdb\u4e00\u6b65\u5b8c\u5584\u4f60\u7684\u4e2a\u4eba\u4fe1\u606f\u3002\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684\u5934\u50cf\u56fe\u6807\uff0c\u9009\u62e9\u201c\u8bbe\u7f6e\u201d\u3002\u5728\u6b64\uff0c\u4f60\u53ef\u4ee5\uff1a<\/p>\n\n\n\n<ul>\n<li>\u4e0a\u4f20\u5934\u50cf<\/li>\n\n\n\n<li>\u586b\u5199\u5168\u540d\u3001\u4f4d\u7f6e\u3001\u516c\u53f8\u7b49\u4fe1\u606f<\/li>\n\n\n\n<li>\u8bbe\u7f6e\u8bed\u8a00\u548c\u65f6\u533a<\/li>\n\n\n\n<li>\u914d\u7f6e\u901a\u77e5\u9996\u9009\u9879<\/li>\n<\/ul>\n\n\n\n<p>\u5b8c\u6210\u4e0a\u8ff0\u6b65\u9aa4\u540e\uff0c\u4f60\u5c31\u6210\u529f\u521b\u5efa\u4e86GitLab\u8d26\u53f7\uff0c\u73b0\u5728\u53ef\u4ee5\u5f00\u59cb\u521b\u5efa\u3001\u7ba1\u7406\u548c\u8d21\u732e\u9879\u76ee\u4e86\uff01<\/p>\n\n\n\n<p>\u603b\u7ed3\uff1a GitLab\u4f5c\u4e3a\u4e00\u4e2a\u6d41\u884c\u7684\u4ee3\u7801\u6258\u7ba1\u548c\u534f\u4f5c\u5e73\u53f0\uff0c\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u4fbf\u5229\u7684\u5de5\u5177\u3002\u521b\u5efa\u8d26\u53f7\u7684\u8fc7\u7a0b\u867d\u7136\u7b80\u5355\uff0c\u4f46\u4e3a\u786e\u4fdd\u6570\u636e\u7684\u5b89\u5168\u6027\uff0c\u8bf7\u786e\u4fdd\u4f7f\u7528\u72ec\u7279\u548c\u5b89\u5168\u7684\u5bc6\u7801\uff0c\u5e76\u5b9a\u671f\u66f4\u65b0\u3002\u6b64\u5916\uff0c\u53ca\u65f6\u68c0\u67e5\u548c\u66f4\u65b0\u4e2a\u4eba\u4fe1\u606f\uff0c\u4ee5\u786e\u4fdd\u4e0e\u56e2\u961f\u6210\u5458\u548c\u5176\u4ed6GitLab\u7528\u6237\u7684\u6709\u6548\u6c9f\u901a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1280\" height=\"850\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/10\/\u5982\u4f55\u4e0b\u8f7dgithub\u7684\u6587\u4ef6-83.jpg?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\" class=\"wp-image-57196\" srcset=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/10\/\u5982\u4f55\u4e0b\u8f7dgithub\u7684\u6587\u4ef6-83.jpg 1280w, https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/10\/\u5982\u4f55\u4e0b\u8f7dgithub\u7684\u6587\u4ef6-83-768x510.jpg 768w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p><strong>\u5e38\u89c1\u95ee\u7b54\uff1a<\/strong><\/p>\n\n\n\n<ul>\n<li><strong>Q1: \u4e3a\u4ec0\u4e48\u5728\u6ce8\u518cGitLab\u8d26\u53f7\u65f6\uff0c\u6211\u6536\u4e0d\u5230\u786e\u8ba4\u90ae\u4ef6\uff1f<\/strong><\/li>\n\n\n\n<li><strong>A1:<\/strong> \u5f53\u4f60\u5728GitLab\u6ce8\u518c\u8d26\u53f7\u540e\u6ca1\u6709\u6536\u5230\u786e\u8ba4\u90ae\u4ef6\uff0c\u6709\u51e0\u79cd\u53ef\u80fd\u7684\u539f\u56e0\uff1a1) \u90ae\u4ef6\u53ef\u80fd\u88ab\u8bef\u5224\u4e3a\u5783\u573e\u90ae\u4ef6\uff0c\u8bf7\u68c0\u67e5\u4f60\u7684\u5783\u573e\u90ae\u4ef6\u7bb1\u30022) \u6709\u4e9b\u90ae\u4ef6\u670d\u52a1\u63d0\u4f9b\u5546\u53ef\u80fd\u4f1a\u5ef6\u8fdf\u6216\u5c4f\u853dGitLab\u7684\u90ae\u4ef6\uff0c\u5efa\u8bae\u5c1d\u8bd5\u4f7f\u7528\u5176\u4ed6\u7684\u90ae\u4ef6\u5730\u5740\u91cd\u65b0\u6ce8\u518c\u30023) \u5982\u679c\u957f\u65f6\u95f4\u4ecd\u672a\u6536\u5230\uff0c\u8bf7\u786e\u4fdd\u4f60\u7684\u90ae\u4ef6\u5730\u5740\u8f93\u5165\u65e0\u8bef\uff0c\u5e76\u5c1d\u8bd5\u518d\u6b21\u53d1\u9001\u786e\u8ba4\u90ae\u4ef6\u3002<\/li>\n<\/ul>\n\n\n\n<ul>\n<li><strong>Q2: GitLab\u548cGitHub\u6709\u4ec0\u4e48\u533a\u522b\uff0c\u4e3a\u4ec0\u4e48\u6211\u9700\u8981\u5728GitLab\u521b\u5efa\u8d26\u53f7\uff1f<\/strong><\/li>\n\n\n\n<li><strong>A2:<\/strong> GitLab\u548cGitHub\u90fd\u662f\u4ee3\u7801\u6258\u7ba1\u5e73\u53f0\uff0c\u4f46\u6709\u4e00\u4e9b\u4e3b\u8981\u7684\u533a\u522b\u3002GitHub\u4e3b\u8981\u662f\u4e00\u4e2a\u516c\u5171\u7684\u4ee3\u7801\u4ed3\u5e93\u5e73\u53f0\uff0c\u800cGitLab\u4e0d\u4ec5\u63d0\u4f9b\u516c\u5171\u7684\u4ee3\u7801\u4ed3\u5e93\uff0c\u8fd8\u63d0\u4f9b\u4e86\u81ea\u5df1\u90e8\u7f72\u7684\u79c1\u6709\u4ed3\u5e93\u89e3\u51b3\u65b9\u6848\u3002GitLab\u8fd8\u5305\u62ec\u4e00\u6574\u5957\u5b8c\u6574\u7684DevOps\u5de5\u5177\u94fe\uff0c\u5982<a href=\"https:\/\/docs.pingcode.com\/blog\/devops\/52691.html\" target=\"_blank\">CI\/CD<\/a>\u3001\u4ee3\u7801\u8bc4\u5ba1\u3001\u81ea\u52a8\u5316\u6d4b\u8bd5\u7b49\u3002\u5982\u679c\u4f60\u6216\u4f60\u7684\u56e2\u961f\u9700\u8981\u4e00\u4e2a\u66f4\u52a0\u79c1\u5bc6\u4e14\u96c6\u6210\u5ea6\u9ad8\u7684\u4ee3\u7801\u7ba1\u7406\u548c\u534f\u4f5c\u5e73\u53f0\uff0c\u90a3\u4e48GitLab\u4f1a\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u9009\u62e9\u3002<\/li>\n<\/ul>\n\n\n\n<ul>\n<li><strong>Q3: \u6211\u5728GitLab\u4e0a\u521b\u5efa\u4e86\u8d26\u53f7\uff0c\u662f\u5426\u9700\u8981\u652f\u4ed8\u8d39\u7528\uff1f<\/strong><\/li>\n\n\n\n<li><strong>A3:<\/strong> GitLab\u4e3a\u7528\u6237\u63d0\u4f9b\u4e86\u514d\u8d39\u7684\u8d26\u53f7\u9009\u9879\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u514d\u8d39\u8d26\u53f7\u8bbf\u95eeGitLab\u7684\u57fa\u7840\u529f\u80fd\u3002\u4f46\u662f\uff0cGitLab\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e9b\u589e\u5f3a\u529f\u80fd\u7684\u4ed8\u8d39\u7248\u672c\uff0c\u5982\u9ad8\u7ea7\u7684CI\/CD\u529f\u80fd\u3001\u5b89\u5168\u68c0\u6d4b\u7b49\uff0c\u5982\u679c\u9700\u8981\u8fd9\u4e9b\u589e\u5f3a\u529f\u80fd\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u5347\u7ea7\u5230\u4ed8\u8d39\u7248\u672c\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"\u200b\u521b\u5efaGitLab\u8d26\u53f7\u9700\u8981\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\uff1a1. \u8bbf\u95eeGitLab\u5b98\u65b9\u7f51\u7ad9\uff1b2. \u70b9\u51fb\u201c\u6ce8\u518c\u201d\u6309\u94ae\uff1b3. \u586b\u5199\u6ce8\u518c [&hellip;]","protected":false},"author":7,"featured_media":57197,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[1226],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/57195"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=57195"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/57195\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/57197"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=57195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=57195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=57195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}