{"id":85596,"date":"2026-07-27T18:10:27","date_gmt":"2026-07-27T10:10:27","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/85596.html"},"modified":"2026-07-27T18:10:27","modified_gmt":"2026-07-27T10:10:27","slug":"%e3%80%90%e8%ae%a1%e7%ae%97%e6%9c%ba%e5%b8%b8%e8%af%86%e3%80%91-%e4%bd%bf%e7%94%a8-gitea-%e5%9c%a8%e6%9c%ac%e5%9c%b0-%e5%86%85%e7%bd%91%e6%90%ad%e5%bb%ba-git-%e7%a7%81%e6%9c%89%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/85596.html","title":{"rendered":"\u3010\u8ba1\u7b97\u673a\u5e38\u8bc6\u3011--\u4f7f\u7528 Gitea \u5728\u672c\u5730\/\u5185\u7f51\u642d\u5efa Git \u79c1\u6709\u670d\u52a1\u5668"},"content":{"rendered":"<p>\u5728\u672c\u5730\u6216\u5185\u7f51\u4f7f\u7528 Gitea \u642d\u5efa Git \u79c1\u6709\u670d\u52a1\u5668&#xff0c;\u5176\u5b89\u5168\u6027\u4e3b\u8981\u4f53\u73b0\u5728\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762&#xff1a;<\/p>\n<li>\n<p>\u7f51\u7edc\u9694\u79bb&#xff1a;\u90e8\u7f72\u5728\u5185\u7f51\u73af\u5883\u4e2d&#xff0c;\u9ed8\u8ba4\u4e0d\u5bf9\u5916\u66b4\u9732\u670d\u52a1&#xff0c;\u6709\u6548\u9632\u6b62\u6765\u81ea\u516c\u7f51\u7684\u672a\u6388\u6743\u8bbf\u95ee\u3001\u626b\u63cf\u548c\u653b\u51fb&#xff0c;\u5927\u5e45\u964d\u4f4e\u5916\u90e8\u5a01\u80c1\u9762\u3002<\/p>\n<\/li>\n<li>\n<p>\u6570\u636e\u81ea\u4e3b\u53ef\u63a7&#xff1a;\u6240\u6709\u4ee3\u7801\u3001\u7528\u6237\u4fe1\u606f\u3001\u64cd\u4f5c\u65e5\u5fd7\u7b49\u654f\u611f\u6570\u636e\u5b8c\u5168\u4fdd\u7559\u5728\u7ec4\u7ec7\u5185\u90e8&#xff0c;\u907f\u514d\u4e86\u5c06\u6838\u5fc3\u8d44\u4ea7\u6258\u7ba1\u4e8e\u7b2c\u4e09\u65b9\u5e73\u53f0<span style=\"color:#fe2c24\">&#xff08;\u5982 GitHub\u3001GitLab.com&#xff09;\u53ef\u80fd\u5e26\u6765\u7684\u5408\u89c4\u6027\u98ce\u9669\u6216\u6570\u636e\u6cc4\u9732\u9690\u60a3\u3002<\/span><\/p>\n<\/li>\n<li>\n<p>\u7ec6\u7c92\u5ea6\u6743\u9650\u7ba1\u7406&#xff1a;Gitea \u63d0\u4f9b\u5b8c\u5584\u7684\u7528\u6237\/\u7ec4\u7ec7\/\u4ed3\u5e93\u7ea7\u6743\u9650\u63a7\u5236\u673a\u5236&#xff08;\u5982\u53ea\u8bfb\u3001\u5199\u5165\u3001\u7ba1\u7406\u5458\u89d2\u8272&#xff09;&#xff0c;\u652f\u6301\u56e2\u961f\u534f\u4f5c\u4e2d\u7684\u6700\u5c0f\u6743\u9650\u539f\u5219&#xff0c;\u9632\u6b62\u8d8a\u6743\u64cd\u4f5c\u3002<\/p>\n<\/li>\n<li>\n<p>\u5f00\u6e90\u900f\u660e\u4e0e\u793e\u533a\u7ef4\u62a4&#xff1a;Gitea \u91c7\u7528 MIT \u5f00\u6e90\u534f\u8bae&#xff0c;\u4ee3\u7801\u516c\u5f00\u53ef\u5ba1\u8ba1&#xff0c;\u5b89\u5168\u6f0f\u6d1e\u901a\u5e38\u80fd\u88ab\u793e\u533a\u5feb\u901f\u53d1\u73b0\u548c\u4fee\u590d&#xff1b;\u540c\u65f6\u4fdd\u6301\u8f7b\u91cf\u3001\u4f4e\u4f9d\u8d56&#xff0c;\u51cf\u5c11\u4e86\u653b\u51fb\u9762\u3002<\/p>\n<\/li>\n<p>\u7efc\u4e0a&#xff0c;Gitea \u5728\u5185\u7f51\u90e8\u7f72\u672c\u8eab\u5177\u5907\u8f83\u9ad8\u7684\u57fa\u7840\u5b89\u5168\u6027&#xff0c;\u4f46\u5176\u6574\u4f53\u5b89\u5168\u6c34\u5e73\u9ad8\u5ea6\u4f9d\u8d56\u4e8e\u90e8\u7f72\u8005\u7684\u914d\u7f6e\u89c4\u8303\u3001\u8fd0\u7ef4\u4e60\u60ef\u548c\u5b89\u5168\u610f\u8bc6\u3002\u5408\u7406\u89c4\u5212\u548c\u6301\u7eed\u7ef4\u62a4\u662f\u4fdd\u969c\u79c1\u6709 Git \u670d\u52a1\u957f\u671f\u5b89\u5168\u8fd0\u884c\u7684\u5173\u952e\u3002<\/p>\n<p><span style=\"color:#fe2c24\">\u524d\u63d0&#xff1a;\u4f60\u7684\u67d0\u53f0\u7535\u8111&#xff08;\u53ef\u4ee5\u662f\u4f60\u7684\u5f00\u53d1\u673a\u6216\u4e00\u53f0\u5e38\u5f00\u7684\u670d\u52a1\u5668&#xff09;\u5df2\u5b89\u88c5\u00a0Docker\u00a0\u548c\u00a0Docker Compose\u3002<\/span><\/p>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"1.%E5%88%9B%E5%BB%BA%20Gitea%20%E6%95%B0%E6%8D%AE%E7%9B%AE%E5%BD%95-toc\" style=\"margin-left:0px\">1.\u521b\u5efa Gitea \u6570\u636e\u76ee\u5f55<\/p>\n<p id=\"2.%E5%88%9B%E5%BB%BA%C2%A0docker-compose.yml-toc\" style=\"margin-left:0px\">2.\u521b\u5efa\u00a0docker-compose.yml<\/p>\n<p id=\"3.%E8%AE%BE%E7%BD%AE%E7%9B%AE%E5%BD%95%E6%9D%83%E9%99%90%EF%BC%88%E5%85%B3%E9%94%AE%EF%BC%81%EF%BC%89-toc\" style=\"margin-left:0px\">3.\u8bbe\u7f6e\u76ee\u5f55\u6743\u9650&#xff08;\u5173\u952e&#xff01;&#xff09;<\/p>\n<p id=\"4.%E5%90%AF%E5%8A%A8%20Gitea-toc\" style=\"margin-left:0px\">4.\u542f\u52a8 Gitea<\/p>\n<p id=\"5.%E5%88%9D%E5%A7%8B%E5%8C%96git%E6%9C%8D%E5%8A%A1%E5%99%A8-toc\" style=\"margin-left:0px\">5.\u521d\u59cb\u5316git\u670d\u52a1\u5668<\/p>\n<p id=\"1.%20%E5%81%9C%E6%AD%A2%E5%AE%B9%E5%99%A8%E5%B9%B6%E6%B8%85%E7%90%86%EF%BC%88%E6%9C%80%E5%90%8E%E4%B8%80%E6%AC%A1%E9%87%8D%E7%BD%AE%EF%BC%89-toc\" style=\"margin-left:80px\">1. \u505c\u6b62\u5bb9\u5668\u5e76\u6e05\u7406<\/p>\n<p id=\"2.%20%E6%89%8B%E5%8A%A8%E5%88%9B%E5%BB%BA%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6-toc\" style=\"margin-left:80px\">2. \u624b\u52a8\u521b\u5efa\u914d\u7f6e\u6587\u4ef6<\/p>\n<p id=\"3.%20%E4%BF%AE%E6%AD%A3%E6%9D%83%E9%99%90%E5%B9%B6%E5%90%AF%E5%8A%A8-toc\" style=\"margin-left:80px\">3. \u4fee\u6b63\u6743\u9650\u5e76\u542f\u52a8<\/p>\n<p id=\"4.%20%E5%88%9B%E5%BB%BA%E7%AE%A1%E7%90%86%E5%91%98%E8%B4%A6%E5%8F%B7-toc\" style=\"margin-left:80px\">4. \u521b\u5efa\u7ba1\u7406\u5458\u8d26\u53f7<\/p>\n<p id=\"6.%E7%99%BB%E5%BD%95%E5%88%9B%E5%BB%BA-toc\" style=\"margin-left:0px\">6.\u767b\u5f55\u521b\u5efa<\/p>\n<hr id=\"hr-toc\" \/>\n<h2>1.\u521b\u5efa Gitea \u6570\u636e\u76ee\u5f55<\/h2>\n<p>Gitea \u7684\u201c\u6570\u636e\u76ee\u5f55\u201d\u662f\u4f60\u6574\u4e2a\u79c1\u6709 Git \u670d\u52a1\u7684\u6240\u6709\u6838\u5fc3\u8d44\u4ea7\u6240\u5728\u5730\u2014\u2014\u5305\u62ec\u4ee3\u7801\u4ed3\u5e93\u3001\u7528\u6237\u6570\u636e\u3001\u914d\u7f6e\u3001\u9644\u4ef6\u3001\u6570\u636e\u5e93\u7b49&#xff0c;\u5fc5\u987b\u59a5\u5584\u5907\u4efd\u548c\u4fdd\u62a4\u3002<\/p>\n<\/p>\n<p>Gitea \u7684\u6570\u636e\u76ee\u5f55\u4e2d\u786e\u5b9e\u5305\u542b\u4f60\u6258\u7ba1\u7684\u6240\u6709\u9879\u76ee\u7684\u5b8c\u6574 Git \u4ed3\u5e93\u6570\u636e&#xff0c;\u4f46\u9700\u8981\u660e\u786e\u4e00\u70b9&#xff1a;<\/p>\n<p>\u5b83\u5b58\u50a8\u7684\u662f Git \u4ed3\u5e93\u7684\u201c\u88f8\u4ed3\u5e93\u201d&#xff08;bare repository&#xff09;&#xff0c;\u800c\u4e0d\u662f\u4f60\u65e5\u5e38\u5f00\u53d1\u7528\u7684\u201c\u5de5\u4f5c\u526f\u672c\u201d&#xff08;working directory&#xff09;\u3002<\/p>\n<p>1.\u00a0\u4ec0\u4e48\u662f\u201c\u88f8\u4ed3\u5e93\u201d&#xff1f;<\/p>\n<ul>\n<li>\u88f8\u4ed3\u5e93\u6ca1\u6709\u5de5\u4f5c\u533a&#xff08;\u5373\u6ca1\u6709\u4f60\u5e73\u65f6\u770b\u5230\u7684\u00a0.c\u3001.py\u3001.js\u00a0\u7b49\u6e90\u4ee3\u7801\u6587\u4ef6\u76f4\u63a5\u5c55\u5f00&#xff09;\u3002<\/li>\n<li>\u5b83\u53ea\u5305\u542b Git \u5185\u90e8\u7684\u5143\u6570\u636e\u548c\u5bf9\u8c61\u6570\u636e\u5e93&#xff08;\u5982\u00a0HEAD\u3001config\u3001objects\/\u3001refs\/\u00a0\u7b49\u76ee\u5f55&#xff09;\u3002<\/li>\n<li>\u8fd9\u662f Git \u670d\u52a1\u5668&#xff08;\u5305\u62ec GitHub\u3001GitLab\u3001Gitea&#xff09;\u6807\u51c6\u7684\u5b58\u50a8\u65b9\u5f0f&#xff0c;\u7528\u4e8e\u9ad8\u6548\u63a5\u6536\u63a8\u9001&#xff08;push&#xff09;\u548c\u63d0\u4f9b\u514b\u9686&#xff08;clone&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u8def\u5f84\u793a\u4f8b&#xff1a; D:\\\\gitea-data\\\\gitea-repositories\\\\yourname\\\\myproject.git<\/p>\n<p>\u8fd9\u4e2a\u00a0myproject.git\u00a0\u76ee\u5f55\u5c31\u662f\u4e00\u4e2a\u88f8\u4ed3\u5e93\u3002<\/p>\n<p>\u627e\u4e00\u4e2a\u76ee\u5f55\u521b\u5efa&#xff1a;<\/p>\n<p>mkdir gitea<\/p>\n<p>cd gitea<\/p>\n<p>mkdir data<\/p>\n<p>mkdir git-repos <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"121\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727101021-6a672e8d12f81.png\" width=\"847\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"127\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727101021-6a672e8d27df6.png\" width=\"516\" \/><\/p>\n<h2 id=\"2.%E5%88%9B%E5%BB%BA%C2%A0docker-compose.yml\">2.\u521b\u5efa\u00a0docker-compose.yml<\/h2>\n<p>\u5728\u00a0\u00a0gitea\u00a0\u4e0b\u65b0\u5efa\u6587\u4ef6\u00a0docker-compose.yml&#xff0c;\u5185\u5bb9\u5982\u4e0b&#xff1a;<\/p>\n<p>nano docker-compose.yml<br \/>\nversion: &#039;3.8&#039;<\/p>\n<p>services:<br \/>\n  gitea:<br \/>\n    image: gitea\/gitea:latest<br \/>\n    container_name: gitea<br \/>\n    restart: always<br \/>\n    environment:<br \/>\n      &#8211; USER_UID&#061;1000<br \/>\n      &#8211; USER_GID&#061;1000<br \/>\n      # \u5982\u679c\u4f60\u5e0c\u671b Gitea \u81ea\u52a8\u68c0\u6d4b\u5916\u90e8 URL&#xff0c;\u53ef\u52a0&#xff1a;<br \/>\n      # &#8211; DOMAIN&#061;localhost<br \/>\n      # &#8211; ROOT_URL&#061;http:\/\/localhost:3000\/<br \/>\n    volumes:<br \/>\n      &#8211; \/home\/guoyuping\/annotation_tool\/gitea:\/data<br \/>\n      &#8211; \/etc\/localtime:\/etc\/localtime:ro<br \/>\n    ports:<br \/>\n      &#8211; &#034;3000:3000&#034;   # Web \u754c\u9762<br \/>\n      &#8211; &#034;2222:22&#034;     # SSH \u7aef\u53e3&#xff08;\u6ce8\u610f&#xff1a;\u4e0d\u662f\u9ed8\u8ba4 22&#xff0c;\u907f\u514d\u51b2\u7a81&#xff09;<br \/>\n    networks:<br \/>\n      &#8211; gitea-net<\/p>\n<p>networks:<br \/>\n  gitea-net:<br \/>\n    external: false <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"460\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727101021-6a672e8d361c6.png\" width=\"624\" \/><\/p>\n<ul>\n<li>USER_UID&#061;1000\u00a0\u548c\u00a0USER_GID&#061;1000&#xff1a;\u786e\u4fdd\u5bb9\u5668\u5185\u00a0git\u00a0\u7528\u6237&#xff08;UID&#061;1000&#xff09;\u80fd\u8bfb\u5199\u5bbf\u4e3b\u673a\u76ee\u5f55<\/li>\n<li>\u7aef\u53e3\u00a02222:22&#xff1a;\u5c06\u5bb9\u5668\u5185\u7684 SSH \u670d\u52a1&#xff08;22&#xff09;\u6620\u5c04\u5230\u5bbf\u4e3b\u673a\u7684\u00a02222\u00a0\u7aef\u53e3&#xff08;\u907f\u514d\u4e0e\u7cfb\u7edf SSH \u51b2\u7a81&#xff09;<\/li>\n<li>\u6570\u636e\u6301\u4e45\u5316&#xff1a;\u6240\u6709\u4ed3\u5e93\u3001\u914d\u7f6e\u3001\u6570\u636e\u5e93&#xff08;SQLite&#xff09;\u90fd\u5b58\u4e8e\u00a0\/home\/guoyuping\/annotation_tool\/gitea\/<\/li>\n<\/ul>\n<h2 id=\"3.%E8%AE%BE%E7%BD%AE%E7%9B%AE%E5%BD%95%E6%9D%83%E9%99%90%EF%BC%88%E5%85%B3%E9%94%AE%EF%BC%81%EF%BC%89\">3.\u8bbe\u7f6e\u76ee\u5f55\u6743\u9650&#xff08;\u5173\u952e&#xff01;&#xff09;<\/h2>\n<p>Gitea \u5bb9\u5668\u9ed8\u8ba4\u4ee5 UID&#061;1000 \u7684\u00a0git\u00a0\u7528\u6237\u8fd0\u884c&#xff0c;\u5fc5\u987b\u786e\u4fdd\u8be5\u7528\u6237\u5bf9\u6570\u636e\u76ee\u5f55\u6709\u8bfb\u5199\u6743\u9650&#xff1a;<\/p>\n<p>sudo chown -R 1000:1000 \/home\/guoyuping\/annotation_tool\/gitea <\/p>\n<p>&#x1f4a1; \u9a8c\u8bc1&#xff1a;<\/p>\n<p> ls -ld \/home\/guoyuping\/annotation_tool\/gitea<br \/>\n# \u5e94\u663e\u793a&#xff1a;drwxr-xr-x &#8230; 1000 1000 &#8230;<br \/>\n <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"48\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727101021-6a672e8d4c5ea.png\" width=\"1015\" \/><\/p>\n<h2 id=\"4.%E5%90%AF%E5%8A%A8%20Gitea\">4.\u542f\u52a8 Gitea<\/h2>\n<p># \u5728 gitea-deploy\/ \u76ee\u5f55\u4e0b\u6267\u884c<br \/>\ndocker-compose up -d <\/p>\n<p>\u9996\u6b21\u542f\u52a8\u4f1a\u81ea\u52a8\u62c9\u53d6\u955c\u50cf\u5e76\u521d\u59cb\u5316\u3002<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"175\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727101021-6a672e8d5bc8d.png\" width=\"914\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"175\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727101021-6a672e8d72458.png\" width=\"1247\" \/><\/p>\n<h2 id=\"5.%E5%88%9D%E5%A7%8B%E5%8C%96git%E6%9C%8D%E5%8A%A1%E5%99%A8\" style=\"background-color:transparent\">5.\u521d\u59cb\u5316git\u670d\u52a1\u5668<\/h2>\n<p>\u6253\u5f00&#xff1a;http:\/\/&lt;\u4f60\u7684\u670d\u52a1\u5668IP&gt;:3000<\/p>\n<li>\u6253\u5f00\u00a0http:\/\/\u670d\u52a1\u5668IP:3000<\/li>\n<li>\u6570\u636e\u5e93\u9009\u62e9\u00a0SQLite3&#xff08;\u9ed8\u8ba4&#xff0c;\u65e0\u9700\u989d\u5916\u914d\u7f6e&#xff09;<\/li>\n<li>\u57df\u540d\u586b\u5199&#xff1a;localhost\u00a0\u6216\u4f60\u7684\u670d\u52a1\u5668 IP<\/li>\n<li>SSH \u670d\u52a1\u5668\u57df\u540d&#xff1a;localhost&#xff08;\u6216 IP&#xff09;<\/li>\n<li>SSH \u7aef\u53e3&#xff1a;2222&#xff08;\u5fc5\u987b\u4e0e\u00a0docker-compose.yml\u00a0\u4e2d\u6620\u5c04\u7aef\u53e3\u4e00\u81f4&#xff01;&#xff09;<\/li>\n<li>\u521b\u5efa\u7ba1\u7406\u5458\u8d26\u53f7&#xff08;\u5982\u00a0guoyuping&#xff09;<\/li>\n<li>\u70b9\u51fb\u00a0\u7acb\u5373\u5b89\u88c5<\/li>\n<p>\u2705 \u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u81ea\u52a8\u8df3\u8f6c\u5230\u767b\u5f55\u9875<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1356\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727101021-6a672e8d91394.png\" width=\"1663\" \/><\/p>\n<p>\u5931\u8d25\u4e86&#xff1a;<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"806\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727101022-6a672e8e73f00.png\" width=\"1970\" \/><\/p>\n<p>\u67e5\u770b\u65e5\u5fd7&#xff1a;<\/p>\n<p> docker compose logs -f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"302\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727101023-6a672e8f03706.png\" width=\"1302\" \/><\/p>\n<p>Bug: gitea \u00a0| \/usr\/local\/go\/src\/runtime\/asm_amd64.s:1650 (0x475b60) gitea \u00a0| 2026\/05\/13 15:11:49 &#8230;s\/install\/install.go:226:checkDatabase() [I] Gitea will be installed in a database with: hasPostInstallationUser&#061;false, dbMigrationVersion&#061;280 gitea \u00a0| 2026\/05\/13 15:11:57 &#8230;\/context_response.go:86:HTML() [E] Render failed: failed to render template: install, error: write tcp 172.29.0.2:3000-&gt;10.24.37.133:59127: write: broken pipe gitea \u00a0| 2026\/05\/13 15:11:57 &#8230;\/context_response.go:88:HTML() [E] plainTextInternal (status&#061;500): write bytes failed: write tcp 172.29.0.2:3000-&gt;10.24.37.133:59127: write: broken pipe gitea \u00a0| 2026\/05\/13 15:11:57 &#8230;rs\/common\/errpage.go:26:RenderPanicErrorPage() [E] PANIC: interface conversion: context.Context is nil, not *db.Context \u00a0<\/p>\n<p>\u6838\u5fc3\u9519\u8bef\u4fe1\u606f\u662f&#xff1a;PANIC: interface conversion: context.Context is nil, not *db.Context\u3002\u8fd9\u901a\u5e38\u610f\u5473\u7740\u5728\u5b89\u88c5\u5f15\u5bfc\u754c\u9762\u63d0\u4ea4\u8868\u5355\u65f6&#xff0c;Gitea \u5728\u5c1d\u8bd5\u521d\u59cb\u5316\u6570\u636e\u5e93\u8fde\u63a5\u6216\u6e32\u67d3\u5b89\u88c5\u7ed3\u679c\u9875\u9762\u65f6\u4e22\u5931\u4e86\u4e0a\u4e0b\u6587&#xff0c;\u5bfc\u81f4\u7a0b\u5e8f\u5d29\u6e83\u3002<\/p>\n<p>\u9020\u6210 write: broken pipe \u548c PANIC \u7684\u5e38\u89c1\u539f\u56e0\u53ca\u89e3\u51b3\u65b9\u6cd5\u5982\u4e0b&#xff1a;<\/p>\n<hr \/>\n<p>1. \u6743\u9650\u51b2\u7a81&#xff08;\u6700\u53ef\u80fd\u7684\u539f\u56e0&#xff09;<\/p>\n<p>\u7531\u4e8e\u4f60\u624b\u52a8\u6307\u5b9a\u4e86 \/home\/guoyuping\/annotation_tool\/gitea\/ \u76ee\u5f55&#xff0c;Docker \u5bb9\u5668\u5185\u7684 git \u7528\u6237&#xff08;UID 1000&#xff09;\u53ef\u80fd\u6ca1\u6709\u6743\u9650\u8bfb\u5199\u5bbf\u4e3b\u673a\u7684\u8fd9\u4e2a\u6587\u4ef6\u5939\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5&#xff1a; \u5728\u5bbf\u4e3b\u673a\u4e0a\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u786e\u4fdd\u76ee\u5f55\u6240\u6709\u6743\u5c5e\u4e8e\u5bb9\u5668\u5185\u7684\u7528\u6237&#xff1a;<\/p>\n<p>\u5f53\u7f51\u9875\u8868\u5355\u63d0\u4ea4\u540e&#xff0c;\u7531\u4e8e\u67d0\u4e9b\u73af\u5883\u4e0b\u7684\u7f51\u7edc\u6296\u52a8\u5bfc\u81f4 broken pipe&#xff0c;\u7a0b\u5e8f\u5728\u5c1d\u8bd5\u6e32\u67d3\u9519\u8bef\u9875\u9762\u65f6\u4e22\u5931\u4e86\u6570\u636e\u5e93\u4e0a\u4e0b\u6587\u3002<\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u201c\u8df3\u8fc7\u7f51\u9875\u5b89\u88c5\u754c\u9762&#xff0c;\u76f4\u63a5\u4f7f\u7528\u914d\u7f6e\u6587\u4ef6\u542f\u52a8\u201d\u7684\u65b9\u6cd5\u6765\u7ed5\u8fc7\u8fd9\u4e2a\u62a5\u9519\u3002<\/p>\n<p>\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c&#xff1a;<\/p>\n<h4 id=\"1.%20%E5%81%9C%E6%AD%A2%E5%AE%B9%E5%99%A8%E5%B9%B6%E6%B8%85%E7%90%86%EF%BC%88%E6%9C%80%E5%90%8E%E4%B8%80%E6%AC%A1%E9%87%8D%E7%BD%AE%EF%BC%89\" style=\"background-color:transparent\">1. \u505c\u6b62\u5bb9\u5668\u5e76\u6e05\u7406<\/h4>\n<p>\u4e3a\u4e86\u786e\u4fdd\u6ca1\u6709\u635f\u574f\u7684\u6570\u636e\u5e93\u6b8b\u7559&#xff0c;\u6211\u4eec\u5148\u5f7b\u5e95\u6e05\u7a7a&#xff1a;<\/p>\n<\/p>\n<p> docker compose down<br \/>\nsudo rm -rf \/home\/guoyuping\/annotation_tool\/gitea\/data\/*<\/p>\n<h4 id=\"2.%20%E6%89%8B%E5%8A%A8%E5%88%9B%E5%BB%BA%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6\">2. \u624b\u52a8\u521b\u5efa\u914d\u7f6e\u6587\u4ef6<\/h4>\n<p>Gitea \u7684\u6240\u6709\u7f51\u9875\u8bbe\u7f6e\u6700\u7ec8\u90fd\u4f1a\u5199\u8fdb app.ini\u3002\u6211\u4eec\u76f4\u63a5\u624b\u52a8\u521b\u5efa\u5b83&#xff0c;\u8fd9\u6837 Gitea \u542f\u52a8\u65f6\u5c31\u4f1a\u53d1\u73b0\u201c\u5df2\u7ecf\u5b89\u88c5\u8fc7\u4e86\u201d&#xff0c;\u4ece\u800c\u76f4\u63a5\u8fdb\u5165\u767b\u5f55\u9875\u9762\u3002<\/p>\n<p> # \u521b\u5efa\u914d\u7f6e\u76ee\u5f55<br \/>\nmkdir -p \/home\/guoyuping\/annotation_tool\/gitea\/data\/gitea\/conf\/<\/p>\n<p># \u521b\u5efa\u5e76\u7f16\u8f91 app.ini<br \/>\nnano \/home\/guoyuping\/annotation_tool\/gitea\/data\/gitea\/conf\/app.ini<\/p>\n<p>\u5c06\u4ee5\u4e0b\u5185\u5bb9\u7c98\u8d34\u8fdb\u53bb&#xff08;\u6ce8\u610f\u4fee\u6539 IP \u4e3a\u4f60\u7684\u670d\u52a1\u5668\u5b9e\u9645 IP&#xff09;&#xff1a;<\/p>\n<p> Ini, TOML <\/p>\n<p> APP_NAME &#061; Gitea: Git with a cup of tea<br \/>\nRUN_MODE &#061; prod<br \/>\nRUN_USER &#061; git<\/p>\n<p>[database]<br \/>\nDB_TYPE  &#061; sqlite3<br \/>\nPATH     &#061; \/data\/gitea\/gitea.db<br \/>\nLOG_SQL  &#061; false<\/p>\n<p>[repository]<br \/>\nROOT &#061; \/data\/git\/repositories<\/p>\n<p>[server]<br \/>\nSSH_DOMAIN       &#061; 10.24.37.133<br \/>\nHTTP_PORT        &#061; 3000<br \/>\nROOT_URL         &#061; http:\/\/10.24.37.133:3000\/<br \/>\nDISABLE_SSH      &#061; false<br \/>\nSSH_PORT         &#061; 2222<br \/>\nLFS_START_SERVER &#061; true<\/p>\n<p>[security]<br \/>\nINSTALL_LOCK &#061; true<br \/>\nSECRET_KEY   &#061; $(head -c 32 \/dev\/urandom | base64)<\/p>\n<p>[service]<br \/>\nDISABLE_REGISTRATION &#061; false<\/p>\n<h4 id=\"3.%20%E4%BF%AE%E6%AD%A3%E6%9D%83%E9%99%90%E5%B9%B6%E5%90%AF%E5%8A%A8\">3. \u4fee\u6b63\u6743\u9650\u5e76\u542f\u52a8<\/h4>\n<p> # \u786e\u4fdd\u6240\u6709\u65b0\u5efa\u7684\u914d\u7f6e\u6587\u4ef6\u5939\u6743\u9650\u5c5e\u4e8e 1009<br \/>\nsudo chown -R 1009:1009 \/home\/guoyuping\/annotation_tool\/gitea\/data<\/p>\n<p># \u542f\u52a8\u5bb9\u5668<br \/>\ndocker compose up -d<\/p>\n<h4 id=\"4.%20%E5%88%9B%E5%BB%BA%E7%AE%A1%E7%90%86%E5%91%98%E8%B4%A6%E5%8F%B7\">4. \u521b\u5efa\u7ba1\u7406\u5458\u8d26\u53f7<\/h4>\n<p>\u7531\u4e8e\u6211\u4eec\u8df3\u8fc7\u4e86\u7f51\u9875\u5b89\u88c5&#xff0c;\u73b0\u5728\u9700\u8981\u901a\u8fc7\u547d\u4ee4\u884c\u624b\u52a8\u521b\u5efa\u4e00\u4e2a\u7ba1\u7406\u5458&#xff1a;<\/p>\n<p> docker exec -it -u 1009 gitea gitea admin user create &#8211;username admin &#8211;password \u4f60\u7684 <\/p>\n<h2 id=\"6.%E7%99%BB%E5%BD%95%E5%88%9B%E5%BB%BA\">6.\u767b\u5f55\u521b\u5efa<\/h2>\n<p>\u4f7f\u7528\u521a\u624d\u7684\u7528\u6237\u5bc6\u7801\u767b\u5f55\u8fdb\u6765<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"874\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727101023-6a672e8f2ea2b.png\" width=\"2509\" \/><\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u9879\u76ee&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"505\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727101024-6a672e900260e.png\" width=\"524\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1028\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727101024-6a672e90893d0.png\" width=\"2008\" \/><\/p>\n<p>\u5728pycharm\u4e2d<\/p>\n<p>\u7b2c\u4e00\u6b21\u9879\u76ee\u4e0a\u4f20\u7ba1\u7406&#xff1a;<\/p>\n<p># 1. \u521d\u59cb\u5316 Git<br \/>\ngit init<\/p>\n<p># 2. \u5c06\u6240\u6709\u6587\u4ef6\u6dfb\u52a0\u5230\u6682\u5b58\u533a<br \/>\ngit add .<\/p>\n<p># 3. \u63d0\u4ea4\u5230\u672c\u5730\u4ed3\u5e93<br \/>\ngit commit -m &#034;\u9996\u6b21\u4e0a\u4f20\u4ee3\u7801&#034;<\/p>\n<p># 4. \u5173\u8054\u8fdc\u7a0b Gitea \u4ed3\u5e93 (\u4f7f\u7528 HTTP \u5730\u5740)<br \/>\ngit remote add origin http:\/\/10.24.37.133:3000\/\u4f60\u7684\u7528\u6237\u540d\/\u4ed3\u5e93\u540d.git<\/p>\n<p># 5. \u63a8\u9001\u4ee3\u7801\u5230 Gitea<br \/>\n# \u6b64\u65f6\u4f1a\u5f39\u7a97\u63d0\u793a\u8f93\u5165 Gitea \u7684\u7528\u6237\u540d\u548c\u5bc6\u7801<br \/>\ngit push -u origin main <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"330\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727101025-6a672e913d755.png\" width=\"1169\" \/><\/p>\n<p>\u522b\u7684\u7528\u6237&#xff1a;<\/p>\n<p>git clone http:\/\/10.24.37.133:3000\/guoyuping\/my-project.git  #\u7b2c\u4e00\u6b21\u62c9\u53d6<\/p>\n<p>#\u540c\u6b65\u5206\u652f<br \/>\ngit pull origin main<\/p>\n<p># 1. \u6682\u5b58\u4fee\u6539<br \/>\ngit add .<\/p>\n<p># 2. \u63d0\u4ea4\u5230\u672c\u5730<br \/>\ngit commit -m &#034;\u4fee\u6b63\u4e86\u67d0\u4e2a\u529f\u80fd&#034;<\/p>\n<p># 3. \u63a8\u9001\u5230\u670d\u52a1\u5668<br \/>\ngit push origin main <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1025\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727101025-6a672e916b870.png\" width=\"2197\" \/><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u672c\u5730\u6216\u5185\u7f51\u4f7f\u7528 Gitea \u642d\u5efa Git \u79c1\u6709\u670d\u52a1\u5668&#xff0c;\u5176\u5b89\u5168\u6027\u4e3b\u8981\u4f53\u73b0\u5728\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762&#xff1a; \u7f51\u7edc\u9694\u79bb&#xff1a;\u90e8\u7f72\u5728\u5185\u7f51\u73af\u5883\u4e2d&#xff0c;\u9ed8\u8ba4\u4e0d\u5bf9\u5916\u66b4\u9732\u670d\u52a1&#xff0c;\u6709\u6548\u9632\u6b62\u6765\u81ea\u516c\u7f51\u7684\u672a\u6388\u6743\u8bbf\u95ee\u3001\u626b\u63cf\u548c\u653b\u51fb&#xff0c;\u5927\u5e45\u964d\u4f4e\u5916\u90e8\u5a01\u80c1\u9762\u3002  \u6570\u636e\u81ea\u4e3b\u53ef\u63a7&#xff1a;\u6240\u6709\u4ee3\u7801\u3001\u7528\u6237\u4fe1\u606f\u3001\u64cd\u4f5c\u65e5\u5fd7\u7b49\u654f\u611f\u6570\u636e\u5b8c\u5168\u4fdd\u7559\u5728\u7ec4\u7ec7\u5185\u90e8&#xff0c;\u907f\u514d\u4e86\u5c06\u6838\u5fc3\u8d44\u4ea7\u6258\u7ba1\u4e8e\u7b2c\u4e09\u65b9\u5e73\u53f0&#xff08;\u5982 GitHub\u3001GitLab.com&amp;#x<\/p>\n","protected":false},"author":2,"featured_media":85582,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[89,241,43],"topic":[],"class_list":["post-85596","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-git","tag-gitea","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u8ba1\u7b97\u673a\u5e38\u8bc6\u3011-\u4f7f\u7528 Gitea \u5728\u672c\u5730\/\u5185\u7f51\u642d\u5efa Git \u79c1\u6709\u670d\u52a1\u5668 - \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\/85596.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u8ba1\u7b97\u673a\u5e38\u8bc6\u3011-\u4f7f\u7528 Gitea \u5728\u672c\u5730\/\u5185\u7f51\u642d\u5efa Git \u79c1\u6709\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5728\u672c\u5730\u6216\u5185\u7f51\u4f7f\u7528 Gitea \u642d\u5efa Git \u79c1\u6709\u670d\u52a1\u5668&#xff0c;\u5176\u5b89\u5168\u6027\u4e3b\u8981\u4f53\u73b0\u5728\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762&#xff1a; \u7f51\u7edc\u9694\u79bb&#xff1a;\u90e8\u7f72\u5728\u5185\u7f51\u73af\u5883\u4e2d&#xff0c;\u9ed8\u8ba4\u4e0d\u5bf9\u5916\u66b4\u9732\u670d\u52a1&#xff0c;\u6709\u6548\u9632\u6b62\u6765\u81ea\u516c\u7f51\u7684\u672a\u6388\u6743\u8bbf\u95ee\u3001\u626b\u63cf\u548c\u653b\u51fb&#xff0c;\u5927\u5e45\u964d\u4f4e\u5916\u90e8\u5a01\u80c1\u9762\u3002 \u6570\u636e\u81ea\u4e3b\u53ef\u63a7&#xff1a;\u6240\u6709\u4ee3\u7801\u3001\u7528\u6237\u4fe1\u606f\u3001\u64cd\u4f5c\u65e5\u5fd7\u7b49\u654f\u611f\u6570\u636e\u5b8c\u5168\u4fdd\u7559\u5728\u7ec4\u7ec7\u5185\u90e8&#xff0c;\u907f\u514d\u4e86\u5c06\u6838\u5fc3\u8d44\u4ea7\u6258\u7ba1\u4e8e\u7b2c\u4e09\u65b9\u5e73\u53f0&#xff08;\u5982 GitHub\u3001GitLab.com&amp;#x\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/85596.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-27T10:10:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727101021-6a672e8d12f81.png\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/85596.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/85596.html\",\"name\":\"\u3010\u8ba1\u7b97\u673a\u5e38\u8bc6\u3011-\u4f7f\u7528 Gitea \u5728\u672c\u5730\/\u5185\u7f51\u642d\u5efa Git \u79c1\u6709\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-27T10:10:27+00:00\",\"dateModified\":\"2026-07-27T10:10:27+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/85596.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/85596.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/85596.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u8ba1\u7b97\u673a\u5e38\u8bc6\u3011--\u4f7f\u7528 Gitea \u5728\u672c\u5730\/\u5185\u7f51\u642d\u5efa Git \u79c1\u6709\u670d\u52a1\u5668\"}]},{\"@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":"\u3010\u8ba1\u7b97\u673a\u5e38\u8bc6\u3011-\u4f7f\u7528 Gitea \u5728\u672c\u5730\/\u5185\u7f51\u642d\u5efa Git \u79c1\u6709\u670d\u52a1\u5668 - \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\/85596.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u8ba1\u7b97\u673a\u5e38\u8bc6\u3011-\u4f7f\u7528 Gitea \u5728\u672c\u5730\/\u5185\u7f51\u642d\u5efa Git \u79c1\u6709\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5728\u672c\u5730\u6216\u5185\u7f51\u4f7f\u7528 Gitea \u642d\u5efa Git \u79c1\u6709\u670d\u52a1\u5668&#xff0c;\u5176\u5b89\u5168\u6027\u4e3b\u8981\u4f53\u73b0\u5728\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762&#xff1a; \u7f51\u7edc\u9694\u79bb&#xff1a;\u90e8\u7f72\u5728\u5185\u7f51\u73af\u5883\u4e2d&#xff0c;\u9ed8\u8ba4\u4e0d\u5bf9\u5916\u66b4\u9732\u670d\u52a1&#xff0c;\u6709\u6548\u9632\u6b62\u6765\u81ea\u516c\u7f51\u7684\u672a\u6388\u6743\u8bbf\u95ee\u3001\u626b\u63cf\u548c\u653b\u51fb&#xff0c;\u5927\u5e45\u964d\u4f4e\u5916\u90e8\u5a01\u80c1\u9762\u3002 \u6570\u636e\u81ea\u4e3b\u53ef\u63a7&#xff1a;\u6240\u6709\u4ee3\u7801\u3001\u7528\u6237\u4fe1\u606f\u3001\u64cd\u4f5c\u65e5\u5fd7\u7b49\u654f\u611f\u6570\u636e\u5b8c\u5168\u4fdd\u7559\u5728\u7ec4\u7ec7\u5185\u90e8&#xff0c;\u907f\u514d\u4e86\u5c06\u6838\u5fc3\u8d44\u4ea7\u6258\u7ba1\u4e8e\u7b2c\u4e09\u65b9\u5e73\u53f0&#xff08;\u5982 GitHub\u3001GitLab.com&amp;#x","og_url":"https:\/\/www.wsisp.com\/helps\/85596.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-27T10:10:27+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727101021-6a672e8d12f81.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/85596.html","url":"https:\/\/www.wsisp.com\/helps\/85596.html","name":"\u3010\u8ba1\u7b97\u673a\u5e38\u8bc6\u3011-\u4f7f\u7528 Gitea \u5728\u672c\u5730\/\u5185\u7f51\u642d\u5efa Git \u79c1\u6709\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-27T10:10:27+00:00","dateModified":"2026-07-27T10:10:27+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/85596.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/85596.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/85596.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u8ba1\u7b97\u673a\u5e38\u8bc6\u3011--\u4f7f\u7528 Gitea \u5728\u672c\u5730\/\u5185\u7f51\u642d\u5efa Git \u79c1\u6709\u670d\u52a1\u5668"}]},{"@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\/85596","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=85596"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/85596\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/85582"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=85596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=85596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=85596"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=85596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}