{"id":54647,"date":"2025-08-13T09:40:14","date_gmt":"2025-08-13T01:40:14","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/54647.html"},"modified":"2025-08-13T09:40:14","modified_gmt":"2025-08-13T01:40:14","slug":"macos-%e6%90%ad%e5%bb%ba-gitea-%e7%a7%81%e6%9c%89-git-%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/54647.html","title":{"rendered":"macOS \u642d\u5efa Gitea \u79c1\u6709 Git \u670d\u52a1\u5668\u6559\u7a0b"},"content":{"rendered":"<h2>macOS \u642d\u5efa Gitea \u79c1\u6709 Git \u670d\u52a1\u5668\u6559\u7a0b<\/h2>\n<p>\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728 macOS \u7cfb\u7edf\u4e0a\u5feb\u901f\u642d\u5efa Gitea \u79c1\u6709 Git \u670d\u52a1\u5668&#xff0c;\u9002\u5408\u4e2a\u4eba\u5f00\u53d1\u8005\u548c\u5c0f\u56e2\u961f\u4f7f\u7528\u3002<\/p>\n<h3>&#x1f4dd; \u524d\u8a00<\/h3>\n<p>\u5728\u65e5\u5e38\u5f00\u53d1\u4e2d&#xff0c;\u6211\u4eec\u7ecf\u5e38\u9700\u8981\u4e00\u4e2a\u79c1\u6709\u7684 Git \u670d\u52a1\u5668\u6765\u7ba1\u7406\u4ee3\u7801\u3002\u76f8\u6bd4\u4e8e GitLab \u7684\u590d\u6742\u914d\u7f6e&#xff0c;Gitea \u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684 Git \u670d\u52a1\u89e3\u51b3\u65b9\u6848&#xff0c;\u7279\u522b\u9002\u5408\u5728 macOS \u4e0a\u642d\u5efa\u672c\u5730\u6216\u5c40\u57df\u7f51\u7684 Git \u670d\u52a1\u3002<\/p>\n<h4>\u4e3a\u4ec0\u4e48\u9009\u62e9 Gitea&#xff1f;<\/h4>\n<ul>\n<li>&#x1f680; \u8f7b\u91cf\u7ea7&#xff1a;\u8d44\u6e90\u5360\u7528\u5c11&#xff0c;\u542f\u52a8\u901f\u5ea6\u5feb<\/li>\n<li>&#x1f527; \u6613\u5b89\u88c5&#xff1a;\u4e00\u4e2a\u4e8c\u8fdb\u5236\u6587\u4ef6\u5373\u53ef\u8fd0\u884c<\/li>\n<li>&#x1f310; \u529f\u80fd\u5b8c\u6574&#xff1a;\u652f\u6301 Issues\u3001Pull Requests\u3001Wiki \u7b49<\/li>\n<li>&#x1f4be; \u591a\u6570\u636e\u5e93\u652f\u6301&#xff1a;SQLite\u3001MySQL\u3001PostgreSQL<\/li>\n<li>&#x1f512; \u5b89\u5168\u53ef\u63a7&#xff1a;\u79c1\u6709\u90e8\u7f72&#xff0c;\u6570\u636e\u5b8c\u5168\u638c\u63a7<\/li>\n<\/ul>\n<h4>\u4e3a\u4ec0\u4e48\u9009\u62e9 Mac \u4f5c\u4e3a Gitea \u670d\u52a1\u5668&#xff1f;<\/h4>\n<p>\u76f8\u6bd4\u4e8e Linux \u670d\u52a1\u5668\u6216 Windows&#xff0c;\u4f7f\u7528 Mac \u642d\u5efa Gitea \u670d\u52a1\u5668\u6709\u4ee5\u4e0b\u72ec\u7279\u4f18\u52bf&#xff1a;<\/p>\n<h5>&#x1f5a5;\ufe0f \u786c\u4ef6\u4f18\u52bf<\/h5>\n<ul>\n<li>Apple Silicon \u6027\u80fd&#xff1a;M1\/M2\/M3 \u82af\u7247\u63d0\u4f9b\u5353\u8d8a\u7684\u6027\u80fd\u529f\u8017\u6bd4<\/li>\n<li>\u9759\u97f3\u8fd0\u884c&#xff1a;Mac \u8bbe\u5907\u8fd0\u884c\u5b89\u9759&#xff0c;\u9002\u5408\u5bb6\u5ead\u6216\u529e\u516c\u5ba4\u73af\u5883<\/li>\n<li>\u7a33\u5b9a\u53ef\u9760&#xff1a;macOS \u7cfb\u7edf\u7a33\u5b9a\u6027\u9ad8&#xff0c;\u957f\u65f6\u95f4\u8fd0\u884c\u65e0\u6545\u969c<\/li>\n<li>\u4f4e\u529f\u8017&#xff1a;\u76f8\u6bd4\u4f20\u7edf\u670d\u52a1\u5668&#xff0c;Mac \u8bbe\u5907\u529f\u8017\u66f4\u4f4e&#xff0c;\u8282\u80fd\u73af\u4fdd<\/li>\n<\/ul>\n<h5>&#x1f4bb; \u5f00\u53d1\u53cb\u597d<\/h5>\n<ul>\n<li>\u5f00\u53d1\u73af\u5883\u4e00\u4f53\u5316&#xff1a;\u5f00\u53d1\u548c\u670d\u52a1\u5668\u5728\u540c\u4e00\u53f0\u8bbe\u5907&#xff0c;\u8c03\u8bd5\u66f4\u65b9\u4fbf<\/li>\n<li>\u539f\u751f Unix \u73af\u5883&#xff1a;\u5b8c\u7f8e\u652f\u6301 Git \u548c\u5404\u79cd\u5f00\u53d1\u5de5\u5177<\/li>\n<li>Homebrew \u751f\u6001&#xff1a;\u4e30\u5bcc\u7684\u5305\u7ba1\u7406\u5de5\u5177&#xff0c;\u5b89\u88c5\u8f6f\u4ef6\u66f4\u7b80\u5355<\/li>\n<li>\u5b8c\u7f8e\u652f\u6301\u5bb9\u5668&#xff1a;Docker Desktop \u5728 Mac \u4e0a\u8fd0\u884c\u6d41\u7545<\/li>\n<\/ul>\n<h3>&#x1f6e0;\ufe0f \u73af\u5883\u51c6\u5907<\/h3>\n<h4>\u7cfb\u7edf\u8981\u6c42<\/h4>\n<ul>\n<li>macOS 10.15 \u53ca\u4ee5\u4e0a\u7248\u672c<\/li>\n<li>\u81f3\u5c11 4GB \u5185\u5b58&#xff08;\u63a8\u8350 8GB&#xff09;<\/li>\n<li>10GB \u4ee5\u4e0a\u53ef\u7528\u78c1\u76d8\u7a7a\u95f4<\/li>\n<\/ul>\n<h4>\u68c0\u67e5\u7cfb\u7edf\u73af\u5883<\/h4>\n<p><span class=\"token comment\"># \u67e5\u770b macOS \u7248\u672c<\/span><br \/>\nsw_vers<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b CPU \u67b6\u6784&#xff08;\u91cd\u8981&#xff1a;\u5f71\u54cd\u4e0b\u8f7d\u7684\u5b89\u88c5\u5305&#xff09;<\/span><br \/>\n<span class=\"token function\">uname<\/span> -m<br \/>\n<span class=\"token comment\"># arm64 &#061; Apple Silicon (M1\/M2\/M3)<\/span><br \/>\n<span class=\"token comment\"># x86_64 &#061; Intel \u82af\u7247<\/span><\/p>\n<p><span class=\"token comment\"># \u68c0\u67e5\u662f\u5426\u5b89\u88c5\u4e86 Xcode \u547d\u4ee4\u884c\u5de5\u5177<\/span><br \/>\nxcode-select -p<br \/>\n<span class=\"token comment\"># \u5982\u679c\u6ca1\u6709\u5b89\u88c5&#xff0c;\u8fd0\u884c&#xff1a;xcode-select &#8211;install<\/span><\/p>\n<p><span class=\"token comment\"># \u68c0\u67e5\u7aef\u53e3 3000 \u662f\u5426\u53ef\u7528<\/span><br \/>\n<span class=\"token function\">lsof<\/span> -i :3000 <span class=\"token operator\">||<\/span> <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;\u7aef\u53e3 3000 \u53ef\u7528&#034;<\/span><\/p>\n<h3>&#x1f4e6; \u65b9\u6cd5\u4e00&#xff1a;Homebrew \u5b89\u88c5&#xff08;\u63a8\u8350&#xff09;<\/h3>\n<h4>1. \u5b89\u88c5 Homebrew<\/h4>\n<p><span class=\"token comment\"># \u5982\u679c\u8fd8\u6ca1\u5b89\u88c5 Homebrew<\/span><br \/>\n\/bin\/bash -c <span class=\"token string\">&#034;<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">curl<\/span> -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh<span class=\"token variable\">)<\/span><\/span>&#034;<\/span><\/p>\n<h4>2. \u5b89\u88c5 Gitea<\/h4>\n<p><span class=\"token comment\"># \u66f4\u65b0 Homebrew<\/span><br \/>\nbrew update<\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5 Gitea<\/span><br \/>\nbrew <span class=\"token function\">install<\/span> gitea<\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1\u5b89\u88c5<\/span><br \/>\ngitea &#8211;version<\/p>\n<h4>3. \u521b\u5efa\u76ee\u5f55\u7ed3\u6784<\/h4>\n<p><span class=\"token comment\"># \u5728\u7528\u6237\u76ee\u5f55\u4e0b\u521b\u5efa Gitea \u5de5\u4f5c\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">mkdir<\/span> -p ~\/Development\/gitea\/<span class=\"token punctuation\">{<\/span>custom\/conf,data,log<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u521b\u5efa\u7684\u76ee\u5f55\u7ed3\u6784<\/span><br \/>\n<span class=\"token function\">ls<\/span> -la ~\/Development\/gitea\/<\/p>\n<h4>4. \u542f\u52a8 Gitea \u670d\u52a1<\/h4>\n<p><span class=\"token comment\"># \u8fdb\u5165\u5de5\u4f5c\u76ee\u5f55<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> ~\/Development\/gitea<\/p>\n<p><span class=\"token comment\"># \u542f\u52a8 Gitea<\/span><br \/>\ngitea web<\/p>\n<p>\u6210\u529f\u542f\u52a8\u540e&#xff0c;\u4f60\u4f1a\u770b\u5230\u7c7b\u4f3c\u8fd9\u6837\u7684\u8f93\u51fa&#xff1a;<\/p>\n<p>2024\/08\/11 15:30:00 &#8230;eb\/routing\/logger.go:102:func1() [I] Started GET \/ for 127.0.0.1:52000<br \/>\n2024\/08\/11 15:30:00 &#8230;s\/context\/context.go:227:Render() [I] Completed GET \/ 200 OK in 2.3ms<\/p>\n<h3>&#x1f310; Web \u754c\u9762\u914d\u7f6e<\/h3>\n<h4>1. \u8bbf\u95ee\u5b89\u88c5\u9875\u9762<\/h4>\n<p>\u6253\u5f00\u6d4f\u89c8\u5668&#xff0c;\u8bbf\u95ee&#xff1a;http:\/\/localhost:3000<\/p>\n<h4>2. \u6570\u636e\u5e93\u914d\u7f6e<\/h4>\n<p>\u63a8\u8350\u4f7f\u7528 SQLite&#xff08;\u9002\u5408\u4e2a\u4eba\u548c\u5c0f\u56e2\u961f&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u6570\u636e\u5e93\u7c7b\u578b&#xff1a;\u9009\u62e9 SQLite3<\/li>\n<li>\u6570\u636e\u5e93\u6587\u4ef6\u8def\u5f84&#xff1a;data\/gitea.db<\/li>\n<\/ul>\n<p>&#x1f4a1; \u5c0f\u8d34\u58eb&#xff1a;SQLite \u65e0\u9700\u989d\u5916\u914d\u7f6e&#xff0c;\u6570\u636e\u5b58\u50a8\u5728\u4e00\u4e2a\u6587\u4ef6\u4e2d&#xff0c;\u5907\u4efd\u548c\u8fc1\u79fb\u90fd\u5f88\u65b9\u4fbf\u3002<\/p>\n<h4>3. \u57fa\u672c\u8bbe\u7f6e<\/h4>\n<ul>\n<li>\u7ad9\u70b9\u540d\u79f0&#xff1a;\u8f93\u5165\u4f60\u60f3\u8981\u7684\u540d\u79f0&#xff0c;\u5982 \u201c\u6211\u7684\u4ee3\u7801\u4ed3\u5e93\u201d<\/li>\n<li>\u4ed3\u5e93\u6839\u76ee\u5f55&#xff1a;data\/repositories<\/li>\n<li>Git LFS \u6839\u76ee\u5f55&#xff1a;data\/lfs<\/li>\n<li>\u4ee5\u6b64\u7528\u6237\u8fd0\u884c&#xff1a;\u4f60\u7684 macOS \u7528\u6237\u540d<\/li>\n<li>\u670d\u52a1\u5668\u57df\u540d&#xff1a;localhost<\/li>\n<li>SSH \u670d\u52a1\u7aef\u53e3&#xff1a;22<\/li>\n<li>HTTP \u7aef\u53e3&#xff1a;3000<\/li>\n<li>\u5e94\u7528\u7a0b\u5e8f URL&#xff1a;http:\/\/localhost:3000\/<\/li>\n<li>\u65e5\u5fd7\u8def\u5f84&#xff1a;log<\/li>\n<\/ul>\n<h4>4. \u7ba1\u7406\u5458\u8d26\u6237\u8bbe\u7f6e<\/h4>\n<ul>\n<li>\u7ba1\u7406\u5458\u7528\u6237\u540d&#xff1a;admin<\/li>\n<li>\u5bc6\u7801&#xff1a;\u8bbe\u7f6e\u4e00\u4e2a\u5f3a\u5bc6\u7801<\/li>\n<li>\u90ae\u7bb1\u5730\u5740&#xff1a;admin&#064;localhost<\/li>\n<\/ul>\n<h4>5. \u5b8c\u6210\u5b89\u88c5<\/h4>\n<p>\u70b9\u51fb \u201c\u7acb\u5373\u5b89\u88c5\u201d \u6309\u94ae&#xff0c;\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210\u3002<\/p>\n<h3>&#x1f527; \u65b9\u6cd5\u4e8c&#xff1a;\u76f4\u63a5\u4e0b\u8f7d\u4e8c\u8fdb\u5236\u6587\u4ef6<\/h3>\n<p>\u5982\u679c\u4f60\u4e0d\u60f3\u4f7f\u7528 Homebrew&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f7d Gitea \u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002<\/p>\n<h4>1. \u4e0b\u8f7d\u5bf9\u5e94\u7248\u672c<\/h4>\n<p><span class=\"token comment\"># Intel \u82af\u7247 Mac<\/span><br \/>\n<span class=\"token function\">curl<\/span> -L https:\/\/dl.gitea.io\/gitea\/1.21.11\/gitea-1.21.11-darwin-10.12-amd64 -o gitea<\/p>\n<p><span class=\"token comment\"># Apple Silicon (M1\/M2\/M3) Mac<\/span><br \/>\n<span class=\"token function\">curl<\/span> -L https:\/\/dl.gitea.io\/gitea\/1.21.11\/gitea-1.21.11-darwin-10.12-arm64 -o gitea<\/p>\n<p><span class=\"token comment\"># \u7ed9\u6587\u4ef6\u6267\u884c\u6743\u9650<\/span><br \/>\n<span class=\"token function\">chmod<\/span> &#043;x gitea<\/p>\n<p><span class=\"token comment\"># \u79fb\u52a8\u5230\u7cfb\u7edf\u8def\u5f84<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">mv<\/span> gitea \/usr\/local\/bin\/gitea<\/p>\n<h4>2. \u521b\u5efa\u914d\u7f6e\u6587\u4ef6<\/h4>\n<p><span class=\"token comment\"># \u521b\u5efa\u5de5\u4f5c\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">mkdir<\/span> -p ~\/gitea-server\/<span class=\"token punctuation\">{<\/span>custom\/conf,data,log<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> ~\/gitea-server<\/p>\n<p><span class=\"token comment\"># \u521b\u5efa\u57fa\u672c\u914d\u7f6e\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">cat<\/span> <span class=\"token operator\">&gt;<\/span> custom\/conf\/app.ini <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token string\">&#039;EOF&#039;<br \/>\n[database]<br \/>\nDB_TYPE &#061; sqlite3<br \/>\nPATH &#061; data\/gitea.db<\/p>\n<p>[repository]<br \/>\nROOT &#061; data\/repositories<\/p>\n<p>[server]<br \/>\nHTTP_PORT &#061; 3000<br \/>\nDOMAIN &#061; localhost<br \/>\nROOT_URL &#061; http:\/\/localhost:3000\/<\/p>\n<p>[log]<br \/>\nMODE &#061; file<br \/>\nLEVEL &#061; Info<br \/>\nROOT_PATH &#061; log<br \/>\nEOF<\/span><\/p>\n<h4>3. \u542f\u52a8\u670d\u52a1<\/h4>\n<p><span class=\"token comment\"># \u542f\u52a8 Gitea<\/span><br \/>\ngitea web<\/p>\n<h3>&#x1f4be; \u4f7f\u7528\u5916\u7f6e\u786c\u76d8\u5b58\u50a8&#xff08;\u53ef\u9009&#xff09;<\/h3>\n<p>\u5982\u679c\u4f60\u6709\u5916\u7f6e\u786c\u76d8&#xff0c;\u53ef\u4ee5\u5c06 Gitea \u6570\u636e\u5b58\u50a8\u5728\u5916\u7f6e\u786c\u76d8\u4e0a&#xff1a;<\/p>\n<h4>1. \u67e5\u770b\u6302\u8f7d\u7684\u5916\u7f6e\u786c\u76d8<\/h4>\n<p><span class=\"token comment\"># \u67e5\u770b\u5df2\u6302\u8f7d\u7684\u5916\u7f6e\u786c\u76d8<\/span><br \/>\n<span class=\"token function\">ls<\/span> -la \/Volumes\/<\/p>\n<h4>2. \u521b\u5efa\u76ee\u5f55\u7ed3\u6784<\/h4>\n<p><span class=\"token comment\"># \u5047\u8bbe\u4f60\u7684\u5916\u7f6e\u786c\u76d8\u540d\u4e3a &#034;Project&#034;<\/span><br \/>\n<span class=\"token function\">mkdir<\/span> -p \/Volumes\/Project\/gitea\/<span class=\"token punctuation\">{<\/span>repositories,lfs,logs,database<span class=\"token punctuation\">}<\/span><\/p>\n<h4>3. \u5728 Web \u914d\u7f6e\u4e2d\u4f7f\u7528\u5916\u7f6e\u786c\u76d8\u8def\u5f84<\/h4>\n<ul>\n<li>\u4ed3\u5e93\u6839\u76ee\u5f55&#xff1a;\/Volumes\/Project\/gitea\/repositories<\/li>\n<li>Git LFS \u6839\u76ee\u5f55&#xff1a;\/Volumes\/Project\/gitea\/lfs<\/li>\n<li>\u6570\u636e\u5e93\u6587\u4ef6\u8def\u5f84&#xff1a;\/Volumes\/Project\/gitea\/database\/gitea.db<\/li>\n<li>\u65e5\u5fd7\u8def\u5f84&#xff1a;\/Volumes\/Project\/gitea\/logs<\/li>\n<\/ul>\n<h3>&#x1f680; \u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u52a8<\/h3>\n<h4>\u521b\u5efa\u542f\u52a8\u670d\u52a1<\/h4>\n<p><span class=\"token comment\"># \u521b\u5efa Launch Agent \u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">cat<\/span> <span class=\"token operator\">&gt;<\/span> ~\/Library\/LaunchAgents\/com.gitea.server.plist <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token string\">EOF<br \/>\n&lt;?xml version&#061;&#034;1.0&#034; encoding&#061;&#034;UTF-8&#034;?&gt;<br \/>\n&lt;!DOCTYPE plist PUBLIC &#034;-\/\/Apple\/\/DTD PLIST 1.0\/\/EN&#034; &#034;http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd&#034;&gt;<br \/>\n&lt;plist version&#061;&#034;1.0&#034;&gt;<br \/>\n&lt;dict&gt;<br \/>\n    &lt;key&gt;Label&lt;\/key&gt;<br \/>\n    &lt;string&gt;com.gitea.server&lt;\/string&gt;<br \/>\n    &lt;key&gt;ProgramArguments&lt;\/key&gt;<br \/>\n    &lt;array&gt;<br \/>\n        &lt;string&gt;\/usr\/local\/bin\/gitea&lt;\/string&gt;<br \/>\n        &lt;string&gt;web&lt;\/string&gt;<br \/>\n    &lt;\/array&gt;<br \/>\n    &lt;key&gt;WorkingDirectory&lt;\/key&gt;<br \/>\n    &lt;string&gt;<span class=\"token environment constant\">$HOME<\/span>\/Development\/gitea&lt;\/string&gt;<br \/>\n    &lt;key&gt;RunAtLoad&lt;\/key&gt;<br \/>\n    &lt;true\/&gt;<br \/>\n    &lt;key&gt;KeepAlive&lt;\/key&gt;<br \/>\n    &lt;true\/&gt;<br \/>\n&lt;\/dict&gt;<br \/>\n&lt;\/plist&gt;<br \/>\nEOF<\/span><\/p>\n<p><span class=\"token comment\"># \u52a0\u8f7d\u670d\u52a1<\/span><br \/>\nlaunchctl load ~\/Library\/LaunchAgents\/com.gitea.server.plist<\/p>\n<h3>&#x1f310; \u5c40\u57df\u7f51\u8bbf\u95ee\u914d\u7f6e<\/h3>\n<p>\u5982\u679c\u4f60\u60f3\u8ba9\u5c40\u57df\u7f51\u5185\u7684\u5176\u4ed6\u8bbe\u5907\u8bbf\u95ee\u4f60\u7684 Git \u670d\u52a1\u5668&#xff1a;<\/p>\n<h4>1. \u67e5\u627e Mac \u7684 IP \u5730\u5740<\/h4>\n<p><span class=\"token comment\"># \u67e5\u770b\u672c\u673a IP \u5730\u5740<\/span><br \/>\n<span class=\"token function\">ifconfig<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token string\">&#034;inet &#034;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> -v <span class=\"token number\">127.0<\/span>.0.1<\/p>\n<h4>2. \u4fee\u6539\u914d\u7f6e<\/h4>\n<p>\u7f16\u8f91 ~\/Development\/gitea\/custom\/conf\/app.ini \u6587\u4ef6&#xff1a;<\/p>\n<p>[server]<br \/>\nDOMAIN &#061; 192.168.1.100  # \u66ff\u6362\u4e3a\u4f60\u7684\u5b9e\u9645 IP<br \/>\nROOT_URL &#061; http:\/\/192.168.1.100:3000\/<\/p>\n<h4>3. \u91cd\u542f Gitea \u670d\u52a1<\/h4>\n<p><span class=\"token comment\"># \u505c\u6b62\u670d\u52a1<\/span><br \/>\nlaunchctl unload ~\/Library\/LaunchAgents\/com.gitea.server.plist<\/p>\n<p><span class=\"token comment\"># \u91cd\u65b0\u542f\u52a8<\/span><br \/>\nlaunchctl load ~\/Library\/LaunchAgents\/com.gitea.server.plist<\/p>\n<p>\u73b0\u5728\u5c40\u57df\u7f51\u5185\u7684\u8bbe\u5907\u53ef\u4ee5\u901a\u8fc7 http:\/\/\u4f60\u7684IP:3000 \u8bbf\u95ee Git \u670d\u52a1\u5668\u4e86\u3002<\/p>\n<h3>&#x1f4f1; \u57fa\u672c\u4f7f\u7528<\/h3>\n<h4>1. \u767b\u5f55\u548c\u521b\u5efa\u4ed3\u5e93<\/h4>\n<li>\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee http:\/\/localhost:3000<\/li>\n<li>\u4f7f\u7528\u7ba1\u7406\u5458\u8d26\u6237\u767b\u5f55<\/li>\n<li>\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684 \u201c&#043;\u201d \u53f7\u521b\u5efa\u65b0\u4ed3\u5e93<\/li>\n<h4>2. \u514b\u9686\u4ed3\u5e93<\/h4>\n<p><span class=\"token comment\"># \u514b\u9686\u4ed3\u5e93\u5230\u672c\u5730<\/span><br \/>\n<span class=\"token function\">git<\/span> clone http:\/\/localhost:3000\/\u7528\u6237\u540d\/\u4ed3\u5e93\u540d.git<\/p>\n<p><span class=\"token comment\"># \u6216\u8005\u4f7f\u7528 IP \u5730\u5740&#xff08;\u5c40\u57df\u7f51\u8bbf\u95ee&#xff09;<\/span><br \/>\n<span class=\"token function\">git<\/span> clone http:\/\/192.168.1.100:3000\/\u7528\u6237\u540d\/\u4ed3\u5e93\u540d.git<\/p>\n<h4>3. \u57fa\u672c\u64cd\u4f5c<\/h4>\n<p><span class=\"token comment\"># \u8fdb\u5165\u4ed3\u5e93\u76ee\u5f55<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> \u4ed3\u5e93\u540d<\/p>\n<p><span class=\"token comment\"># \u6dfb\u52a0\u6587\u4ef6<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;# \u6211\u7684\u9879\u76ee&#034;<\/span> <span class=\"token operator\">&gt;<\/span> README.md<br \/>\n<span class=\"token function\">git<\/span> <span class=\"token function\">add<\/span> <span class=\"token builtin class-name\">.<\/span><br \/>\n<span class=\"token function\">git<\/span> commit -m <span class=\"token string\">&#034;\u521d\u59cb\u63d0\u4ea4&#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u63a8\u9001\u5230\u670d\u52a1\u5668<\/span><br \/>\n<span class=\"token function\">git<\/span> push origin main<\/p>\n<h3>&#x1f6e0;\ufe0f \u5e38\u7528\u7ba1\u7406\u547d\u4ee4<\/h3>\n<p><span class=\"token comment\"># \u624b\u52a8\u542f\u52a8 Gitea<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> ~\/Development\/gitea <span class=\"token operator\">&amp;&amp;<\/span> gitea web<\/p>\n<p><span class=\"token comment\"># \u505c\u6b62 Gitea \u670d\u52a1<\/span><br \/>\nlaunchctl unload ~\/Library\/LaunchAgents\/com.gitea.server.plist<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b Gitea \u65e5\u5fd7<\/span><br \/>\n<span class=\"token function\">tail<\/span> -f ~\/Development\/gitea\/log\/gitea.log<\/p>\n<p><span class=\"token comment\"># \u68c0\u67e5 Gitea \u662f\u5426\u8fd0\u884c<\/span><br \/>\n<span class=\"token function\">curl<\/span> http:\/\/localhost:3000<\/p>\n<p><span class=\"token comment\"># \u521b\u5efa\u7ba1\u7406\u5458\u7528\u6237&#xff08;\u547d\u4ee4\u884c\u65b9\u5f0f&#xff09;<\/span><br \/>\ngitea admin user create &#8211;admin &#8211;username admin &#8211;password AdminPass123 &#8211;email admin&#064;localhost<\/p>\n<h3>\u2753 \u5e38\u89c1\u95ee\u9898\u89e3\u51b3<\/h3>\n<h4>\u7aef\u53e3 3000 \u88ab\u5360\u7528<\/h4>\n<p><span class=\"token comment\"># \u67e5\u770b\u5360\u7528\u7aef\u53e3\u7684\u8fdb\u7a0b<\/span><br \/>\n<span class=\"token function\">lsof<\/span> -i :3000<\/p>\n<p><span class=\"token comment\"># \u4f7f\u7528\u5176\u4ed6\u7aef\u53e3\u542f\u52a8<\/span><br \/>\ngitea web &#8211;port <span class=\"token number\">3001<\/span><\/p>\n<h4>\u6743\u9650\u95ee\u9898<\/h4>\n<p><span class=\"token comment\"># \u4fee\u590d\u76ee\u5f55\u6743\u9650<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">chown<\/span> -R <span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">whoami<\/span><span class=\"token variable\">)<\/span><\/span> ~\/Development\/gitea<\/p>\n<h4>macOS \u5b89\u5168\u9650\u5236<\/h4>\n<p>\u5982\u679c macOS \u963b\u6b62\u8fd0\u884c Gitea&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u79fb\u9664\u9694\u79bb\u5c5e\u6027<\/span><br \/>\n<span class=\"token function\">sudo<\/span> xattr -r -d com.apple.quarantine \/usr\/local\/bin\/gitea<\/p>\n<p>\u6216\u8005\u5728 \u201c\u7cfb\u7edf\u504f\u597d\u8bbe\u7f6e \u2192 \u5b89\u5168\u6027\u4e0e\u9690\u79c1\u201d \u4e2d\u70b9\u51fb \u201c\u4ecd\u8981\u6253\u5f00\u201d\u3002<\/p>\n<h4>\u6570\u636e\u5e93\u9501\u5b9a<\/h4>\n<p><span class=\"token comment\"># \u505c\u6b62\u6240\u6709 Gitea \u8fdb\u7a0b<\/span><br \/>\n<span class=\"token function\">pkill<\/span> gitea<br \/>\n<span class=\"token comment\"># \u7136\u540e\u91cd\u65b0\u542f\u52a8<\/span><\/p>\n<h3>&#x1f4ca; \u6027\u80fd\u4f18\u5316\u5efa\u8bae<\/h3>\n<h4>1. \u786c\u4ef6\u5efa\u8bae<\/h4>\n<ul>\n<li>\u5185\u5b58&#xff1a;8GB \u4ee5\u4e0a&#xff08;\u652f\u6301\u66f4\u591a\u5e76\u53d1\u7528\u6237&#xff09;<\/li>\n<li>\u5b58\u50a8&#xff1a;\u4f7f\u7528 SSD \u786c\u76d8\u63d0\u9ad8\u6027\u80fd<\/li>\n<li>\u7f51\u7edc&#xff1a;\u5343\u5146\u7f51\u7edc&#xff08;\u5c40\u57df\u7f51\u8bbf\u95ee&#xff09;<\/li>\n<\/ul>\n<h4>2. \u914d\u7f6e\u4f18\u5316<\/h4>\n<p># \u5728 app.ini \u4e2d\u6dfb\u52a0\u6027\u80fd\u4f18\u5316\u914d\u7f6e<br \/>\n[server]<br \/>\nLFS_START_SERVER &#061; true<br \/>\nOFFLINE_MODE &#061; true<\/p>\n<p>[database]<br \/>\nMAX_IDLE_CONNS &#061; 30<br \/>\nMAX_OPEN_CONNS &#061; 300<\/p>\n<p>[indexer]<br \/>\nISSUE_INDEXER_TYPE &#061; bleve<br \/>\nREPO_INDEXER_ENABLED &#061; true<\/p>\n<h3>&#x1f510; \u5b89\u5168\u5efa\u8bae<\/h3>\n<li>\u5b9a\u671f\u5907\u4efd&#xff1a;\u5b9a\u671f\u5907\u4efd data \u76ee\u5f55<\/li>\n<li>\u5f3a\u5bc6\u7801&#xff1a;\u4f7f\u7528\u590d\u6742\u7684\u7ba1\u7406\u5458\u5bc6\u7801<\/li>\n<li>\u7f51\u7edc\u5b89\u5168&#xff1a;\u5982\u679c\u5bf9\u5916\u5f00\u653e&#xff0c;\u914d\u7f6e\u9632\u706b\u5899\u89c4\u5219<\/li>\n<li>\u66f4\u65b0\u53ca\u65f6&#xff1a;\u5b9a\u671f\u66f4\u65b0 Gitea \u5230\u6700\u65b0\u7248\u672c<\/li>\n<h3>&#x1f4dd; \u603b\u7ed3<\/h3>\n<p>\u901a\u8fc7\u672c\u6559\u7a0b&#xff0c;\u4f60\u5df2\u7ecf\u5b66\u4f1a\u4e86&#xff1a;<\/p>\n<ul>\n<li>\u2705 \u5728 macOS \u4e0a\u5b89\u88c5\u548c\u914d\u7f6e Gitea<\/li>\n<li>\u2705 \u8bbe\u7f6e\u6570\u636e\u5e93\u548c\u57fa\u672c\u914d\u7f6e<\/li>\n<li>\u2705 \u914d\u7f6e\u5c40\u57df\u7f51\u8bbf\u95ee<\/li>\n<li>\u2705 \u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u52a8<\/li>\n<li>\u2705 \u89e3\u51b3\u5e38\u89c1\u95ee\u9898<\/li>\n<\/ul>\n<p>Gitea \u662f\u4e00\u4e2a\u4f18\u79c0\u7684\u8f7b\u91cf\u7ea7 Git \u670d\u52a1\u89e3\u51b3\u65b9\u6848&#xff0c;\u7279\u522b\u9002\u5408\u4e2a\u4eba\u5f00\u53d1\u8005\u548c\u5c0f\u56e2\u961f\u4f7f\u7528\u3002\u76f8\u6bd4\u4e8e\u590d\u6742\u7684 GitLab&#xff0c;Gitea \u7684\u914d\u7f6e\u66f4\u52a0\u7b80\u5355&#xff0c;\u8d44\u6e90\u5360\u7528\u66f4\u5c11&#xff0c;\u662f\u642d\u5efa\u79c1\u6709 Git \u670d\u52a1\u5668\u7684\u7406\u60f3\u9009\u62e9\u3002<\/p>\n<p>\u73b0\u5728\u4f60\u53ef\u4ee5\u5f00\u59cb\u4f7f\u7528\u81ea\u5df1\u7684\u79c1\u6709 Git \u670d\u52a1\u5668\u4e86&#xff01;\u5982\u679c\u9047\u5230\u95ee\u9898&#xff0c;\u53ef\u4ee5\u67e5\u770b Gitea \u5b98\u65b9\u6587\u6863 \u83b7\u53d6\u66f4\u591a\u5e2e\u52a9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb884\u6b21\uff0c\u70b9\u8d5e25\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\u5728\u65e5\u5e38\u5f00\u53d1\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u9700\u8981\u4e00\u4e2a\u79c1\u6709\u7684 Git \u670d\u52a1\u5668\u6765\u7ba1\u7406\u4ee3\u7801\u3002\u76f8\u6bd4\u4e8e GitLab \u7684\u590d\u6742\u914d\u7f6e\uff0cGitea \u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684 Git \u670d\u52a1\u89e3\u51b3\u65b9\u6848\uff0c\u7279\u522b\u9002\u5408\u5728 macOS \u4e0a\u642d\u5efa\u672c\u5730\u6216\u5c40\u57df\u7f51\u7684 Git \u670d\u52a1\u3002\u2705 \u5728 macOS \u4e0a\u5b89\u88c5\u548c\u914d\u7f6e Gitea\u2705 \u8bbe\u7f6e\u6570\u636e\u5e93\u548c\u57fa\u672c\u914d\u7f6e\u2705 \u914d\u7f6e\u5c40\u57df\u7f51\u8bbf\u95ee\u2705 \u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u52a8\u2705 \u89e3\u51b3\u5e38\u89c1\u95ee\u9898Gitea \u662f\u4e00\u4e2a\u4f18\u79c0\u7684\u8f7b\u91cf\u7ea7 Git \u670d\u52a1\u89e3\u51b3\u65b9\u6848\uff0c\u7279\u522b\u9002\u5408\u4e2a\u4eba\u5f00\u53d1\u8005\u548c\u5c0f\u56e2\u961f\u4f7f\u7528\u3002<\/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,330],"topic":[],"class_list":["post-54647","post","type-post","status-publish","format-standard","hentry","category-server","tag-git","tag-gitea","tag-macos"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>macOS \u642d\u5efa Gitea \u79c1\u6709 Git \u670d\u52a1\u5668\u6559\u7a0b - \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\/54647.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"macOS \u642d\u5efa Gitea \u79c1\u6709 Git \u670d\u52a1\u5668\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb884\u6b21\uff0c\u70b9\u8d5e25\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\u5728\u65e5\u5e38\u5f00\u53d1\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u9700\u8981\u4e00\u4e2a\u79c1\u6709\u7684 Git \u670d\u52a1\u5668\u6765\u7ba1\u7406\u4ee3\u7801\u3002\u76f8\u6bd4\u4e8e GitLab \u7684\u590d\u6742\u914d\u7f6e\uff0cGitea \u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684 Git \u670d\u52a1\u89e3\u51b3\u65b9\u6848\uff0c\u7279\u522b\u9002\u5408\u5728 macOS \u4e0a\u642d\u5efa\u672c\u5730\u6216\u5c40\u57df\u7f51\u7684 Git \u670d\u52a1\u3002\u2705 \u5728 macOS \u4e0a\u5b89\u88c5\u548c\u914d\u7f6e Gitea\u2705 \u8bbe\u7f6e\u6570\u636e\u5e93\u548c\u57fa\u672c\u914d\u7f6e\u2705 \u914d\u7f6e\u5c40\u57df\u7f51\u8bbf\u95ee\u2705 \u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u52a8\u2705 \u89e3\u51b3\u5e38\u89c1\u95ee\u9898Gitea \u662f\u4e00\u4e2a\u4f18\u79c0\u7684\u8f7b\u91cf\u7ea7 Git \u670d\u52a1\u89e3\u51b3\u65b9\u6848\uff0c\u7279\u522b\u9002\u5408\u4e2a\u4eba\u5f00\u53d1\u8005\u548c\u5c0f\u56e2\u961f\u4f7f\u7528\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/54647.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-13T01:40: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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/54647.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/54647.html\",\"name\":\"macOS \u642d\u5efa Gitea \u79c1\u6709 Git \u670d\u52a1\u5668\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-13T01:40:14+00:00\",\"dateModified\":\"2025-08-13T01:40:14+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/54647.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/54647.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/54647.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"macOS \u642d\u5efa Gitea \u79c1\u6709 Git \u670d\u52a1\u5668\u6559\u7a0b\"}]},{\"@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":"macOS \u642d\u5efa Gitea \u79c1\u6709 Git \u670d\u52a1\u5668\u6559\u7a0b - \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\/54647.html","og_locale":"zh_CN","og_type":"article","og_title":"macOS \u642d\u5efa Gitea \u79c1\u6709 Git \u670d\u52a1\u5668\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb884\u6b21\uff0c\u70b9\u8d5e25\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\u5728\u65e5\u5e38\u5f00\u53d1\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u9700\u8981\u4e00\u4e2a\u79c1\u6709\u7684 Git \u670d\u52a1\u5668\u6765\u7ba1\u7406\u4ee3\u7801\u3002\u76f8\u6bd4\u4e8e GitLab \u7684\u590d\u6742\u914d\u7f6e\uff0cGitea \u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684 Git \u670d\u52a1\u89e3\u51b3\u65b9\u6848\uff0c\u7279\u522b\u9002\u5408\u5728 macOS \u4e0a\u642d\u5efa\u672c\u5730\u6216\u5c40\u57df\u7f51\u7684 Git \u670d\u52a1\u3002\u2705 \u5728 macOS \u4e0a\u5b89\u88c5\u548c\u914d\u7f6e Gitea\u2705 \u8bbe\u7f6e\u6570\u636e\u5e93\u548c\u57fa\u672c\u914d\u7f6e\u2705 \u914d\u7f6e\u5c40\u57df\u7f51\u8bbf\u95ee\u2705 \u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u52a8\u2705 \u89e3\u51b3\u5e38\u89c1\u95ee\u9898Gitea \u662f\u4e00\u4e2a\u4f18\u79c0\u7684\u8f7b\u91cf\u7ea7 Git \u670d\u52a1\u89e3\u51b3\u65b9\u6848\uff0c\u7279\u522b\u9002\u5408\u4e2a\u4eba\u5f00\u53d1\u8005\u548c\u5c0f\u56e2\u961f\u4f7f\u7528\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/54647.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-13T01:40:14+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/54647.html","url":"https:\/\/www.wsisp.com\/helps\/54647.html","name":"macOS \u642d\u5efa Gitea \u79c1\u6709 Git \u670d\u52a1\u5668\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-13T01:40:14+00:00","dateModified":"2025-08-13T01:40:14+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/54647.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/54647.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/54647.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"macOS \u642d\u5efa Gitea \u79c1\u6709 Git \u670d\u52a1\u5668\u6559\u7a0b"}]},{"@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\/54647","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=54647"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/54647\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=54647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=54647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=54647"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=54647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}