{"id":12486,"date":"2025-04-18T19:37:42","date_gmt":"2025-04-18T11:37:42","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/12486.html"},"modified":"2025-04-18T19:37:42","modified_gmt":"2025-04-18T11:37:42","slug":"%e6%9e%84%e5%bb%ba%e8%87%aa%e5%b7%b1%e7%9a%84%e7%a7%81%e6%9c%89-git-%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%9a%e5%9f%ba%e4%ba%8e-gitea-%e7%9a%84%e8%bd%bb%e9%87%8f%e5%8c%96%e9%83%a8%e7%bd%b2%e5%ae%9e","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/12486.html","title":{"rendered":"\u6784\u5efa\u81ea\u5df1\u7684\u79c1\u6709 Git \u670d\u52a1\u5668\uff1a\u57fa\u4e8e Gitea \u7684\u8f7b\u91cf\u5316\u90e8\u7f72\u5b9e\u6218\u6307\u5357"},"content":{"rendered":"<p>\u5bf9\u4e8e\u4e2a\u4eba\u5f00\u53d1\u8005\u3001\u5c0f\u578b\u56e2\u961f\u4e43\u81f3\u4f01\u4e1a\u6765\u8bf4&#xff0c;\u5c06\u9879\u76ee\u4ee3\u7801\u6258\u7ba1\u5728 GitHub\u3001Gitee \u7b49\u516c\u5171\u5e73\u53f0\u867d\u7136\u65b9\u4fbf&#xff0c;\u4f46\u4e5f\u5b58\u5728\u4e00\u5b9a\u7684\u9690\u79c1\u4e0e\u53ef\u63a7\u6027\u95ee\u9898\u3002<\/p>\n<p>\u642d\u5efa\u4e00\u5957\u79c1\u6709 Git \u4ee3\u7801\u4ed3\u5e93\u7cfb\u7edf&#xff0c;\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u6e90\u7801\u7684\u5b8c\u5168\u63a7\u5236&#xff0c;\u540c\u65f6\u4e0d\u4f9d\u8d56\u4efb\u4f55\u7b2c\u4e09\u65b9\u5e73\u53f0&#xff0c;\u5c24\u5176\u9002\u5408\u5185\u90e8\u9879\u76ee\u3001\u4fdd\u5bc6\u9700\u6c42\u6216\u79c1\u6709\u5316\u90e8\u7f72\u573a\u666f\u3002<\/p>\n<p>\u672c\u6587\u5c06\u4ee5\u8f7b\u91cf\u7ea7\u5f00\u6e90\u9879\u76ee Gitea \u4e3a\u4f8b&#xff0c;\u4ecb\u7ecd\u5982\u4f55\u5728\u4e00\u53f0 Linux \u4e91\u670d\u52a1\u5668\u4e0a\u5feb\u901f\u90e8\u7f72\u5e76\u8fd0\u884c\u4e00\u5957\u5b8c\u6574\u7684 Git \u4ed3\u5e93\u670d\u52a1\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001Gitea \u7b80\u4ecb<\/h3>\n<p>Gitea \u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u3001\u57fa\u4e8e Go \u8bed\u8a00\u5f00\u53d1\u7684 Git \u670d\u52a1\u5e73\u53f0&#xff0c;\u5176\u7279\u70b9\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>\u8f7b\u91cf\u3001\u6613\u90e8\u7f72\u3001\u4f4e\u8d44\u6e90\u5360\u7528<\/li>\n<li>\u652f\u6301 Web UI\u3001SSH\u3001HTTP\/S\u3001Issue\u3001Pull Request\u3001Wiki \u7b49\u529f\u80fd<\/li>\n<li>\u5185\u7f6e CI\/CD\u3001Webhook\u3001\u4ee3\u7801\u5ba1\u67e5\u673a\u5236<\/li>\n<li>\u8de8\u5e73\u53f0\u652f\u6301&#xff08;Linux\u3001Windows\u3001ARM&#xff09;<\/li>\n<\/ul>\n<p>\u5bf9\u4e8e\u8d44\u6e90\u4e0d\u9ad8\u7684\u4e91\u670d\u52a1\u5668\u800c\u8a00&#xff0c;Gitea \u662f\u81ea\u5efa Git \u5e73\u53f0\u7684\u7406\u60f3\u9009\u62e9\u3002<\/p>\n<hr \/>\n<h3>\u4e8c\u3001\u90e8\u7f72\u73af\u5883\u51c6\u5907<\/h3>\n<h4>\u63a8\u8350\u914d\u7f6e<\/h4>\n<ul>\n<li>\u7cfb\u7edf&#xff1a;Ubuntu 20.04 \/ CentOS 7&#043;<\/li>\n<li>\u5185\u5b58&#xff1a;1GB \u53ca\u4ee5\u4e0a<\/li>\n<li>\u5b89\u88c5\u7ec4\u4ef6&#xff1a;Git\u3001SQLite&#xff08;\u9ed8\u8ba4&#xff09;\u3001\u6216\u53ef\u9009 MySQL\/PostgreSQL<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e09\u3001\u5b89\u88c5 Git \u4e0e\u4f9d\u8d56\u9879<\/h3>\n<p><span class=\"token comment\"># \u5b89\u88c5 Git<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> -y <span class=\"token function\">git<\/span><\/p>\n<p><span class=\"token comment\"># \u53ef\u9009&#xff1a;\u5b89\u88c5\u6570\u636e\u5e93&#xff08;\u4f7f\u7528 SQLite \u53ef\u8df3\u8fc7&#xff09;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> -y mariadb-server<br \/>\n<span class=\"token function\">sudo<\/span> mysql_secure_installation<\/p>\n<hr \/>\n<h3>\u56db\u3001\u4e0b\u8f7d\u5e76\u8fd0\u884c Gitea<\/h3>\n<h4>\u521b\u5efa\u8fd0\u884c\u76ee\u5f55<\/h4>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> -p \/opt\/gitea<br \/>\n<span class=\"token function\">sudo<\/span> adduser &#8211;system &#8211;shell \/bin\/bash &#8211;gecos <span class=\"token string\">&#039;Git Version Control&#039;<\/span> &#8211;group &#8211;disabled-password &#8211;home \/home\/git <span class=\"token function\">git<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">chown<\/span> -R git:git \/opt\/gitea<\/p>\n<h4>\u4e0b\u8f7d Gitea \u4e8c\u8fdb\u5236\u7a0b\u5e8f<\/h4>\n<p><span class=\"token function\">wget<\/span> -O \/opt\/gitea\/gitea https:\/\/dl.gitea.io\/gitea\/latest\/gitea-1.21.3-linux-amd64<br \/>\n<span class=\"token function\">chmod<\/span> &#043;x \/opt\/gitea\/gitea<\/p>\n<hr \/>\n<h3>\u4e94\u3001\u914d\u7f6e\u7cfb\u7edf\u670d\u52a1<\/h3>\n<p>\u521b\u5efa Gitea \u7684 systemd \u542f\u52a8\u811a\u672c&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/systemd\/system\/gitea.service<\/p>\n<p>\u586b\u5165\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p>[Unit]<br \/>\nDescription&#061;Gitea (Git with a cup of tea)<br \/>\nAfter&#061;network.target<\/p>\n<p>[Service]<br \/>\nRestartSec&#061;2s<br \/>\nType&#061;simple<br \/>\nUser&#061;git<br \/>\nWorkingDirectory&#061;\/opt\/gitea<br \/>\nExecStart&#061;\/opt\/gitea\/gitea web<br \/>\nRestart&#061;always<br \/>\nEnvironment&#061;USER&#061;git HOME&#061;\/home\/git GITEA_WORK_DIR&#061;\/opt\/gitea<\/p>\n<p>[Install]<br \/>\nWantedBy&#061;multi-user.target<\/p>\n<p>\u542f\u52a8\u670d\u52a1&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl daemon-reexec<br \/>\n<span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> &#8211;now gitea<\/p>\n<p>\u9ed8\u8ba4\u76d1\u542c\u7aef\u53e3\u4e3a 3000\u3002<\/p>\n<hr \/>\n<h3>\u516d\u3001Nginx \u914d\u7f6e\u53cd\u5411\u4ee3\u7406&#xff08;\u53ef\u9009&#xff09;<\/h3>\n<p>\u4e3a\u4e86\u901a\u8fc7 80\/443 \u7aef\u53e3\u8bbf\u95ee&#xff0c;\u53ef\u4f7f\u7528 Nginx \u505a\u4ee3\u7406&#xff1a;<\/p>\n<p>server {<br \/>\n    listen 80;<br \/>\n    server_name git.yourdomain.com;<\/p>\n<p>    location \/ {<br \/>\n        proxy_pass http:\/\/localhost:3000;<br \/>\n        proxy_set_header Host $host;<br \/>\n        proxy_set_header X-Real-IP $remote_addr;<br \/>\n    }<br \/>\n}<\/p>\n<p>\u91cd\u65b0\u52a0\u8f7d&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> nginx -t <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">sudo<\/span> systemctl reload nginx<\/p>\n<hr \/>\n<h3>\u4e03\u3001\u9996\u6b21\u8bbf\u95ee\u4e0e\u521d\u59cb\u5316\u8bbe\u7f6e<\/h3>\n<p>\u6d4f\u89c8\u5668\u8bbf\u95ee&#xff1a;<\/p>\n<p>http:\/\/your_server_ip:3000<\/p>\n<p>\u6216\u7ed1\u5b9a\u57df\u540d\u540e\u8bbf\u95ee http:\/\/git.yourdomain.com&#xff0c;\u5373\u53ef\u8fdb\u5165 Gitea \u5b89\u88c5\u5f15\u5bfc\u754c\u9762\u3002<\/p>\n<p>\u6309\u9700\u914d\u7f6e&#xff1a;<\/p>\n<ul>\n<li>\u6570\u636e\u5e93&#xff1a;SQLite&#xff08;\u9ed8\u8ba4&#xff09;\u6216\u81ea\u5b9a\u4e49<\/li>\n<li>\u5e94\u7528\u540d\u79f0\u3001\u7ba1\u7406\u5458\u8d26\u6237<\/li>\n<li>\u4ed3\u5e93\u8def\u5f84\u3001\u65e5\u5fd7\u8def\u5f84\u7b49<\/li>\n<\/ul>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u5373\u53ef\u8fdb\u5165\u767b\u5f55\u9875&#xff0c;\u5f00\u59cb\u4f7f\u7528\u79c1\u6709 Git \u5e73\u53f0\u3002<\/p>\n<hr \/>\n<h3>\u516b\u3001\u914d\u7f6e SSH \u4e0e\u4ee3\u7801\u4e0a\u4f20<\/h3>\n<p>Gitea \u652f\u6301&#xff1a;<\/p>\n<ul>\n<li>HTTPS \u514b\u9686&#xff08;\u7528\u6237\u540d\u5bc6\u7801&#xff09;<\/li>\n<li>SSH \u514b\u9686&#xff08;\u6dfb\u52a0\u516c\u94a5&#xff09;<\/li>\n<\/ul>\n<p>\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u5c06\u4ee3\u7801\u63a8\u9001\u81f3\u79c1\u6709\u5e73\u53f0&#xff1a;<\/p>\n<p><span class=\"token function\">git<\/span> remote <span class=\"token function\">add<\/span> origin git&#064;git.yourdomain.com:username\/project.git<br \/>\n<span class=\"token function\">git<\/span> push -u origin main<\/p>\n<hr \/>\n<h3>\u4e5d\u3001\u8fdb\u9636\u914d\u7f6e\u5efa\u8bae<\/h3>\n<ul>\n<li>\u8bbe\u7f6e\u81ea\u52a8\u5907\u4efd Gitea \u6570\u636e\u4e0e\u4ed3\u5e93\u76ee\u5f55<\/li>\n<li>\u914d\u7f6e SSL&#xff08;Let\u2019s Encrypt \u6216 Nginx \u53cd\u4ee3&#xff09;<\/li>\n<li>\u914d\u7f6e Webhook \u7528\u4e8e\u89e6\u53d1\u81ea\u52a8\u90e8\u7f72\u811a\u672c<\/li>\n<li>\u542f\u7528\u767b\u5f55\u8ba4\u8bc1\u673a\u5236&#xff08;\u5982LDAP&#xff09;\u6216\u4e8c\u6b65\u9a8c\u8bc1<\/li>\n<li>\u7ed3\u5408 CI \u5de5\u5177&#xff08;\u5982 Drone\u3001Jenkins&#xff09;<\/li>\n<\/ul>\n<hr \/>\n<h3>\u5341\u3001\u603b\u7ed3<\/h3>\n<p>\u901a\u8fc7\u90e8\u7f72 Gitea&#xff0c;\u4f60\u53ef\u4ee5\u5728\u81ea\u5df1\u7684\u4e91\u670d\u52a1\u5668\u4e0a\u642d\u5efa\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u3001\u529f\u80fd\u5b8c\u5584\u3001\u64cd\u4f5c\u65b9\u4fbf\u7684 Git \u4ed3\u5e93\u5e73\u53f0&#xff0c;\u62e5\u6709\u5b8c\u6574\u7684\u6743\u9650\u7ba1\u7406\u3001\u4ee3\u7801\u5ba1\u67e5\u3001\u534f\u4f5c\u80fd\u529b&#xff0c;\u9002\u5408\u4e2a\u4eba\u9879\u76ee\u7ba1\u7406\u3001\u56e2\u961f\u534f\u4f5c\u3001\u79c1\u6709\u6e90\u7801\u6258\u7ba1\u7b49\u591a\u79cd\u573a\u666f\u3002<\/p>\n<p>\u6574\u4e2a\u90e8\u7f72\u6d41\u7a0b\u65e0\u9700\u7f16\u8bd1\u73af\u5883&#xff0c;\u8d44\u6e90\u5360\u7528\u6781\u4f4e&#xff0c;\u5373\u4f7f\u5728 1G \u5185\u5b58\u7684 VPS \u4e0a\u4e5f\u80fd\u7a33\u5b9a\u8fd0\u884c\u3002<\/p>\n<hr \/>\n<p>&#x1f4cc; \u6ce8&#xff1a;\u672c\u6587\u6240\u4f7f\u7528\u7684\u4e91\u670d\u52a1\u5668\u6258\u7ba1\u4e8e\u6148\u4e91\u6570\u636e&#xff0c;\u642d\u8f7d Ubuntu 20.04 \u7cfb\u7edf&#xff0c;\u8fd0\u884c Gitea \u7a33\u5b9a\u6d41\u7545&#xff0c;\u90e8\u7f72\u5468\u671f\u7ea6 15 \u5206\u949f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf11\u6b21\u3002\u8f7b\u91cf\u3001\u6613\u90e8\u7f72\u3001\u4f4e\u8d44\u6e90\u5360\u7528\u652f\u6301 Web UI\u3001SSH\u3001HTTP\/S\u3001Issue\u3001Pull Request\u3001Wiki \u7b49\u529f\u80fd\u5185\u7f6e CI\/CD\u3001Webhook\u3001\u4ee3\u7801\u5ba1\u67e5\u673a\u5236\u8de8\u5e73\u53f0\u652f\u6301\uff08Linux\u3001Windows\u3001ARM\uff09\u5bf9\u4e8e\u8d44\u6e90\u4e0d\u9ad8\u7684\u4e91\u670d\u52a1\u5668\u800c\u8a00\uff0cGitea \u662f\u81ea\u5efa Git \u5e73\u53f0\u7684\u7406\u60f3\u9009\u62e9\u3002\u901a\u8fc7\u90e8\u7f72 Gitea\uff0c\u4f60\u53ef\u4ee5\u5728\u81ea\u5df1\u7684\u4e91\u670d\u52a1\u5668\u4e0a\u642d\u5efa\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u3001\u529f\u80fd\u5b8c\u5584\u3001\u64cd\u4f5c\u65b9\u4fbf\u7684 Git \u4ed3\u5e93\u5e73\u53f0\uff0c\u62e5\u6709\u5b8c\u6574\u7684\u6743\u9650\u7ba1\u7406\u3001\u4ee3\u7801\u5ba1\u67e5\u3001\u534f\u4f5c\u80fd\u529b\uff0c\u9002\u5408\u4e2a\u4eba\u9879\u76ee\u7ba1\u7406\u3001\u56e2\u961f\u534f\u4f5c\u3001\u79c1\u6709\u6e90\u7801\u6258\u7ba1\u7b49\u591a\u79cd\u573a\u666f\u3002_gitea\u65b0\u5efaweb<\/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,241,58,698,43],"topic":[],"class_list":["post-12486","post","type-post","status-publish","format-standard","hentry","category-server","tag-git","tag-gitea","tag-linux","tag-698","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6784\u5efa\u81ea\u5df1\u7684\u79c1\u6709 Git \u670d\u52a1\u5668\uff1a\u57fa\u4e8e Gitea \u7684\u8f7b\u91cf\u5316\u90e8\u7f72\u5b9e\u6218\u6307\u5357 - \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\/12486.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6784\u5efa\u81ea\u5df1\u7684\u79c1\u6709 Git \u670d\u52a1\u5668\uff1a\u57fa\u4e8e Gitea \u7684\u8f7b\u91cf\u5316\u90e8\u7f72\u5b9e\u6218\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf11\u6b21\u3002\u8f7b\u91cf\u3001\u6613\u90e8\u7f72\u3001\u4f4e\u8d44\u6e90\u5360\u7528\u652f\u6301 Web UI\u3001SSH\u3001HTTP\/S\u3001Issue\u3001Pull Request\u3001Wiki \u7b49\u529f\u80fd\u5185\u7f6e CI\/CD\u3001Webhook\u3001\u4ee3\u7801\u5ba1\u67e5\u673a\u5236\u8de8\u5e73\u53f0\u652f\u6301\uff08Linux\u3001Windows\u3001ARM\uff09\u5bf9\u4e8e\u8d44\u6e90\u4e0d\u9ad8\u7684\u4e91\u670d\u52a1\u5668\u800c\u8a00\uff0cGitea \u662f\u81ea\u5efa Git \u5e73\u53f0\u7684\u7406\u60f3\u9009\u62e9\u3002\u901a\u8fc7\u90e8\u7f72 Gitea\uff0c\u4f60\u53ef\u4ee5\u5728\u81ea\u5df1\u7684\u4e91\u670d\u52a1\u5668\u4e0a\u642d\u5efa\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u3001\u529f\u80fd\u5b8c\u5584\u3001\u64cd\u4f5c\u65b9\u4fbf\u7684 Git \u4ed3\u5e93\u5e73\u53f0\uff0c\u62e5\u6709\u5b8c\u6574\u7684\u6743\u9650\u7ba1\u7406\u3001\u4ee3\u7801\u5ba1\u67e5\u3001\u534f\u4f5c\u80fd\u529b\uff0c\u9002\u5408\u4e2a\u4eba\u9879\u76ee\u7ba1\u7406\u3001\u56e2\u961f\u534f\u4f5c\u3001\u79c1\u6709\u6e90\u7801\u6258\u7ba1\u7b49\u591a\u79cd\u573a\u666f\u3002_gitea\u65b0\u5efaweb\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/12486.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T11:37:42+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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/12486.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/12486.html\",\"name\":\"\u6784\u5efa\u81ea\u5df1\u7684\u79c1\u6709 Git \u670d\u52a1\u5668\uff1a\u57fa\u4e8e Gitea \u7684\u8f7b\u91cf\u5316\u90e8\u7f72\u5b9e\u6218\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T11:37:42+00:00\",\"dateModified\":\"2025-04-18T11:37:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/12486.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/12486.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/12486.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6784\u5efa\u81ea\u5df1\u7684\u79c1\u6709 Git \u670d\u52a1\u5668\uff1a\u57fa\u4e8e Gitea \u7684\u8f7b\u91cf\u5316\u90e8\u7f72\u5b9e\u6218\u6307\u5357\"}]},{\"@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":"\u6784\u5efa\u81ea\u5df1\u7684\u79c1\u6709 Git \u670d\u52a1\u5668\uff1a\u57fa\u4e8e Gitea \u7684\u8f7b\u91cf\u5316\u90e8\u7f72\u5b9e\u6218\u6307\u5357 - \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\/12486.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6784\u5efa\u81ea\u5df1\u7684\u79c1\u6709 Git \u670d\u52a1\u5668\uff1a\u57fa\u4e8e Gitea \u7684\u8f7b\u91cf\u5316\u90e8\u7f72\u5b9e\u6218\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf11\u6b21\u3002\u8f7b\u91cf\u3001\u6613\u90e8\u7f72\u3001\u4f4e\u8d44\u6e90\u5360\u7528\u652f\u6301 Web UI\u3001SSH\u3001HTTP\/S\u3001Issue\u3001Pull Request\u3001Wiki \u7b49\u529f\u80fd\u5185\u7f6e CI\/CD\u3001Webhook\u3001\u4ee3\u7801\u5ba1\u67e5\u673a\u5236\u8de8\u5e73\u53f0\u652f\u6301\uff08Linux\u3001Windows\u3001ARM\uff09\u5bf9\u4e8e\u8d44\u6e90\u4e0d\u9ad8\u7684\u4e91\u670d\u52a1\u5668\u800c\u8a00\uff0cGitea \u662f\u81ea\u5efa Git \u5e73\u53f0\u7684\u7406\u60f3\u9009\u62e9\u3002\u901a\u8fc7\u90e8\u7f72 Gitea\uff0c\u4f60\u53ef\u4ee5\u5728\u81ea\u5df1\u7684\u4e91\u670d\u52a1\u5668\u4e0a\u642d\u5efa\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u3001\u529f\u80fd\u5b8c\u5584\u3001\u64cd\u4f5c\u65b9\u4fbf\u7684 Git \u4ed3\u5e93\u5e73\u53f0\uff0c\u62e5\u6709\u5b8c\u6574\u7684\u6743\u9650\u7ba1\u7406\u3001\u4ee3\u7801\u5ba1\u67e5\u3001\u534f\u4f5c\u80fd\u529b\uff0c\u9002\u5408\u4e2a\u4eba\u9879\u76ee\u7ba1\u7406\u3001\u56e2\u961f\u534f\u4f5c\u3001\u79c1\u6709\u6e90\u7801\u6258\u7ba1\u7b49\u591a\u79cd\u573a\u666f\u3002_gitea\u65b0\u5efaweb","og_url":"https:\/\/www.wsisp.com\/helps\/12486.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T11:37:42+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/12486.html","url":"https:\/\/www.wsisp.com\/helps\/12486.html","name":"\u6784\u5efa\u81ea\u5df1\u7684\u79c1\u6709 Git \u670d\u52a1\u5668\uff1a\u57fa\u4e8e Gitea \u7684\u8f7b\u91cf\u5316\u90e8\u7f72\u5b9e\u6218\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T11:37:42+00:00","dateModified":"2025-04-18T11:37:42+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/12486.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/12486.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/12486.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6784\u5efa\u81ea\u5df1\u7684\u79c1\u6709 Git \u670d\u52a1\u5668\uff1a\u57fa\u4e8e Gitea \u7684\u8f7b\u91cf\u5316\u90e8\u7f72\u5b9e\u6218\u6307\u5357"}]},{"@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\/12486","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=12486"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/12486\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=12486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=12486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=12486"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=12486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}