{"id":115683,"date":"2026-10-13T03:41:14","date_gmt":"2026-10-12T19:41:14","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/115683.html"},"modified":"2026-10-13T03:41:14","modified_gmt":"2026-10-12T19:41:14","slug":"%e8%bd%bb%e9%87%8f%e7%ba%a7git%e4%bb%93%e5%ba%93%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%95%b4%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/115683.html","title":{"rendered":"\u8f7b\u91cf\u7ea7Git\u4ed3\u5e93\u670d\u52a1\u5668\u6574\u7406"},"content":{"rendered":"<p>\u672c\u7bc7\u535a\u6587\u63a8\u8350\u51e0\u6b3e\u6d41\u884c\u7684\u8f7b\u91cf\u7ea7Git\u4ed3\u5e93\u670d\u52a1\u5668&#xff1a;<\/p>\n<h3>1. Gitea \u2b50 \u6700\u63a8\u8350<\/h3>\n<ul>\n<li>\u7279\u70b9&#xff1a;Go\u8bed\u8a00\u5f00\u53d1&#xff0c;\u8d44\u6e90\u5360\u7528\u6781\u5c0f<\/li>\n<li>\u4f18\u52bf&#xff1a;\n<ul>\n<li>\u5185\u5b58\u5360\u7528\u4ec5\u7ea650MB<\/li>\n<li>\u5b89\u88c5\u7b80\u5355&#xff0c;\u5355\u4e8c\u8fdb\u5236\u6587\u4ef6\u90e8\u7f72<\/li>\n<li>\u652f\u6301Web\u754c\u9762\u3001Issue\u3001PR\u7b49\u5b8c\u6574\u529f\u80fd<\/li>\n<li>\u6d3b\u8dc3\u793e\u533a&#xff0c;\u66f4\u65b0\u9891\u7e41<\/li>\n<\/ul>\n<\/li>\n<li>\u9002\u5408&#xff1a;\u4e2a\u4eba\/\u5c0f\u56e2\u961f&#xff0c;\u8d44\u6e90\u6709\u9650\u7684\u73af\u5883<\/li>\n<\/ul>\n<h3>2. GitLab CE<\/h3>\n<ul>\n<li>\u8f7b\u91cf\u7248\u9009\u9879&#xff1a;\u4f7f\u7528Docker\u90e8\u7f72&#xff0c;\u9650\u5236\u8d44\u6e90<\/li>\n<li>\u6700\u5c0f\u914d\u7f6e&#xff1a;2\u68384GB\u5185\u5b58<\/li>\n<li>\u529f\u80fd\u5b8c\u6574\u4f46\u76f8\u5bf9\u8f83\u91cd<\/li>\n<\/ul>\n<h3>3. Gogs<\/h3>\n<ul>\n<li>Go\u8bed\u8a00\u5f00\u53d1&#xff0c;\u6bd4Gitea\u66f4\u65e9<\/li>\n<li>\u8f7b\u91cf\u4f46\u529f\u80fd\u8f83\u5c11&#xff0c;\u66f4\u65b0\u4e0d\u5982Gitea\u6d3b\u8dc3<\/li>\n<\/ul>\n<h3>4. OneDev<\/h3>\n<ul>\n<li>Java\u5f00\u53d1&#xff0c;\u529f\u80fd\u4e30\u5bcc<\/li>\n<li>\u5185\u7f6eCI\/CD&#xff0c;\u76f8\u5bf9\u8f7b\u91cf<\/li>\n<li>\u9700\u8981Java\u73af\u5883<\/li>\n<\/ul>\n<h3>5. \u7eafSSH&#043;Git<\/h3>\n<ul>\n<li>\u6700\u8f7b\u91cf\u65b9\u6848&#xff1a;Linux\u670d\u52a1\u5668 &#043; Git &#043; SSH<\/li>\n<li>\u53ea\u6709\u547d\u4ee4\u884c&#xff0c;\u65e0Web\u754c\u9762<\/li>\n<li>\u914d\u7f6e\u793a\u4f8b&#xff1a;<span class=\"token comment\"># \u670d\u52a1\u5668\u7aef<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> <span class=\"token function\">git<\/span><br \/>\n<span class=\"token function\">sudo<\/span> adduser <span class=\"token function\">git<\/span><br \/>\n<span class=\"token comment\"># \u5ba2\u6237\u7aef<\/span><br \/>\n<span class=\"token function\">git<\/span> remote <span class=\"token function\">add<\/span> origin git&#064;server:\/path\/to\/repo.git<\/p>\n<\/li>\n<\/ul>\n<h3>\u5feb\u901f\u90e8\u7f72\u5efa\u8bae<\/h3>\n<h4>Docker\u90e8\u7f72Gitea&#xff08;\u63a8\u8350&#xff09;<\/h4>\n<p><span class=\"token function\">docker<\/span> run -d <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;name<span class=\"token operator\">&#061;<\/span>gitea <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -p <span class=\"token number\">3000<\/span>:3000 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -v \/data\/gitea:\/data <span class=\"token punctuation\">\\\\<\/span><br \/>\n  gitea\/gitea:latest<\/p>\n<h4>\u76f4\u63a5\u5b89\u88c5Gitea<\/h4>\n<p><span class=\"token comment\"># Linux<\/span><br \/>\n<span class=\"token function\">wget<\/span> -O gitea https:\/\/dl.gitea.io\/gitea<br \/>\n<span class=\"token function\">chmod<\/span> &#043;x gitea<br \/>\n.\/gitea web<\/p>\n<h3>\u9009\u62e9\u5efa\u8bae&#xff1a;<\/h3>\n<ul>\n<li>\u8ffd\u6c42\u6781\u81f4\u8f7b\u91cf&#xff1a;Gitea<\/li>\n<li>\u9700\u8981\u5b8c\u6574DevOps\u529f\u80fd&#xff1a;GitLab CE&#xff08;\u914d\u7f6e\u8f83\u4f4e\u8d44\u6e90&#xff09;<\/li>\n<li>\u53ea\u8981\u57fa\u7840\u4ee3\u7801\u6258\u7ba1&#xff1a;\u7eafGit &#043; SSH<\/li>\n<li>\u4e2a\u4eba\/\u5c0f\u56e2\u961f&#xff1a;\u9996\u9009Gitea<\/li>\n<\/ul>\n<p>Gitea\u662f\u76ee\u524d\u8f7b\u91cf\u7ea7Git\u670d\u52a1\u5668\u7684\u6700\u4f73\u5e73\u8861\u70b9&#xff0c;\u8d44\u6e90\u5360\u7528\u5c0f\u4f46\u529f\u80fd\u9f50\u5168&#xff0c;\u793e\u533a\u652f\u6301\u597d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u7bc7\u535a\u6587\u63a8\u8350\u51e0\u6b3e\u6d41\u884c\u7684\u8f7b\u91cf\u7ea7Git\u4ed3\u5e93\u670d\u52a1\u5668&#xff1a;<br \/>\n1. Gitea \u2b50 \u6700\u63a8\u8350<br \/>\n\u7279\u70b9&#xff1a;Go\u8bed\u8a00\u5f00\u53d1&#xff0c;\u8d44\u6e90\u5360\u7528\u6781\u5c0f\u4f18\u52bf&#xff1a;<br \/>\n\u5185\u5b58\u5360\u7528\u4ec5\u7ea650MB\u5b89\u88c5\u7b80\u5355&#xff0c;\u5355\u4e8c\u8fdb\u5236\u6587\u4ef6\u90e8\u7f72\u652f\u6301Web\u754c\u9762\u3001Issue\u3001PR\u7b49\u5b8c\u6574\u529f\u80fd\u6d3b\u8dc3\u793e\u533a&#xff0c;\u66f4\u65b0\u9891\u7e41<br \/>\n\u9002\u5408&#xff1a;\u4e2a\u4eba\/\u5c0f\u56e2\u961f&#xff0c;\u8d44\u6e90\u6709\u9650\u7684\u73af\u5883<br \/>\n2. GitLab CE<br \/>\n\u8f7b\u91cf\u7248\u9009\u9879&#xff1a;\u4f7f\u7528Docker\u90e8\u7f72&#xff0c;\u9650\u5236\u8d44\u6e90\u6700\u5c0f\u914d\u7f6e&amp;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[89,43,44],"topic":[],"class_list":["post-115683","post","type-post","status-publish","format-standard","hentry","category-server","tag-git","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u8f7b\u91cf\u7ea7Git\u4ed3\u5e93\u670d\u52a1\u5668\u6574\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/115683.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u8f7b\u91cf\u7ea7Git\u4ed3\u5e93\u670d\u52a1\u5668\u6574\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u672c\u7bc7\u535a\u6587\u63a8\u8350\u51e0\u6b3e\u6d41\u884c\u7684\u8f7b\u91cf\u7ea7Git\u4ed3\u5e93\u670d\u52a1\u5668&#xff1a; 1. Gitea \u2b50 \u6700\u63a8\u8350 \u7279\u70b9&#xff1a;Go\u8bed\u8a00\u5f00\u53d1&#xff0c;\u8d44\u6e90\u5360\u7528\u6781\u5c0f\u4f18\u52bf&#xff1a; \u5185\u5b58\u5360\u7528\u4ec5\u7ea650MB\u5b89\u88c5\u7b80\u5355&#xff0c;\u5355\u4e8c\u8fdb\u5236\u6587\u4ef6\u90e8\u7f72\u652f\u6301Web\u754c\u9762\u3001Issue\u3001PR\u7b49\u5b8c\u6574\u529f\u80fd\u6d3b\u8dc3\u793e\u533a&#xff0c;\u66f4\u65b0\u9891\u7e41 \u9002\u5408&#xff1a;\u4e2a\u4eba\/\u5c0f\u56e2\u961f&#xff0c;\u8d44\u6e90\u6709\u9650\u7684\u73af\u5883 2. GitLab CE \u8f7b\u91cf\u7248\u9009\u9879&#xff1a;\u4f7f\u7528Docker\u90e8\u7f72&#xff0c;\u9650\u5236\u8d44\u6e90\u6700\u5c0f\u914d\u7f6e&amp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/115683.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-12T19:41:14+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115683.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/115683.html\",\"name\":\"\u8f7b\u91cf\u7ea7Git\u4ed3\u5e93\u670d\u52a1\u5668\u6574\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-12T19:41:14+00:00\",\"dateModified\":\"2026-10-12T19:41:14+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/115683.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/115683.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115683.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8f7b\u91cf\u7ea7Git\u4ed3\u5e93\u670d\u52a1\u5668\u6574\u7406\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u8f7b\u91cf\u7ea7Git\u4ed3\u5e93\u670d\u52a1\u5668\u6574\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/115683.html","og_locale":"zh_CN","og_type":"article","og_title":"\u8f7b\u91cf\u7ea7Git\u4ed3\u5e93\u670d\u52a1\u5668\u6574\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u672c\u7bc7\u535a\u6587\u63a8\u8350\u51e0\u6b3e\u6d41\u884c\u7684\u8f7b\u91cf\u7ea7Git\u4ed3\u5e93\u670d\u52a1\u5668&#xff1a; 1. Gitea \u2b50 \u6700\u63a8\u8350 \u7279\u70b9&#xff1a;Go\u8bed\u8a00\u5f00\u53d1&#xff0c;\u8d44\u6e90\u5360\u7528\u6781\u5c0f\u4f18\u52bf&#xff1a; \u5185\u5b58\u5360\u7528\u4ec5\u7ea650MB\u5b89\u88c5\u7b80\u5355&#xff0c;\u5355\u4e8c\u8fdb\u5236\u6587\u4ef6\u90e8\u7f72\u652f\u6301Web\u754c\u9762\u3001Issue\u3001PR\u7b49\u5b8c\u6574\u529f\u80fd\u6d3b\u8dc3\u793e\u533a&#xff0c;\u66f4\u65b0\u9891\u7e41 \u9002\u5408&#xff1a;\u4e2a\u4eba\/\u5c0f\u56e2\u961f&#xff0c;\u8d44\u6e90\u6709\u9650\u7684\u73af\u5883 2. GitLab CE \u8f7b\u91cf\u7248\u9009\u9879&#xff1a;\u4f7f\u7528Docker\u90e8\u7f72&#xff0c;\u9650\u5236\u8d44\u6e90\u6700\u5c0f\u914d\u7f6e&amp;","og_url":"https:\/\/www.wsisp.com\/helps\/115683.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-12T19:41:14+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/115683.html","url":"https:\/\/www.wsisp.com\/helps\/115683.html","name":"\u8f7b\u91cf\u7ea7Git\u4ed3\u5e93\u670d\u52a1\u5668\u6574\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-12T19:41:14+00:00","dateModified":"2026-10-12T19:41:14+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/115683.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/115683.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/115683.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u8f7b\u91cf\u7ea7Git\u4ed3\u5e93\u670d\u52a1\u5668\u6574\u7406"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/115683","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=115683"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/115683\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=115683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=115683"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=115683"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=115683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}