{"id":22951,"date":"2021-10-11T16:36:11","date_gmt":"2021-10-11T08:36:11","guid":{"rendered":"https:\/\/aqzt.com\/22951.html"},"modified":"2021-10-11T16:36:11","modified_gmt":"2021-10-11T08:36:11","slug":"git%e6%9c%8d%e5%8a%a1%e5%99%a8gitosis%e5%ae%89%e8%a3%85%e8%ae%be%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/aqzt.com\/22951.html","title":{"rendered":"Git\u670d\u52a1\u5668Gitosis\u5b89\u88c5\u8bbe\u7f6e"},"content":{"rendered":"<h1>Git\u670d\u52a1\u5668Gitosis\u5b89\u88c5\u8bbe\u7f6e<\/h1>\n<h3>\u51fa\u81eaUbuntu\u4e2d\u6587<\/h3>\n<p>1\u3001\u5b89\u88c5 openssh\u670d\u52a1\u5668<\/p>\n<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1sudo apt-get install openssh-server openssh-client <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>2\u3001\u521b\u5efa\u4e2a\u4eba\u516c\u94a5\u548c\u79c1\u94a5<\/p>\n<p>\u5728\u9ed8\u8ba4\u7528\u6237\u7684\u4e3b\u76ee\u5f55\u8def\u5f84\u4e0b\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u6309\u7167\u63d0\u793a\u521b\u5efa\u516c\u94a5\u548c\u79c1\u94a5<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1ssh-keygen -t rsa <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>\u9ed8\u8ba4\u751f\u62102048\u4f4d\uff0c\u5982\u679c\u9700\u8981\u63d0\u9ad8\u5b89\u5168\u7ea7\u522b\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u547d\u4ee4\u521b\u5efa\u516c\u94a5\u548c\u79c1\u94a5<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1ssh-keygen -t rsa -b 4096 <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u516c\u94a5\u548c\u79c1\u94a5\u4f1a\u4fdd\u5b58\u5728~\/.ssh\u76ee\u5f55\u4e0b\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1id_rsa &nbsp;id_rsa.pub &nbsp;known_hosts <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>3\u3001\u5b89\u88c5 git\u670d\u52a1\u5668<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1sudo apt-get install git-core <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>4\u3001\u914d\u7f6e git\u670d\u52a1\u5668<\/p>\n<p>\u521b\u5efagit\u670d\u52a1\u5668\u7ba1\u7406\u7528\u6237<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1sudo useradd -m git sudo passwd git <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>\u521b\u5efagit\u4ed3\u5e93\u5b58\u50a8\u76ee\u5f55<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1sudo mkdir \/home\/git\/repositories <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>\u8bbe\u7f6egit\u4ed3\u5e93\u6743\u9650<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1sudo chown git:git \/home\/git\/repositories sudo chmod 755 \/home\/git\/repositories <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>\u521d\u59cb\u5316\u5168\u5c40\u8bbe\u7f6e<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1git config --global user.name &amp;quot;myname&amp;quot; git config --global user.email &amp;quot;myname@server&amp;quot; <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>5\u3001\u5b89\u88c5python\u7684setup tool<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1sudo apt-get install python-setuptools <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>6\u3001\u83b7\u53d6\u5e76\u5b89\u88c5gitosis<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1cd \/tmp git clone git:\/\/eagain.net\/gitosis.git cd gitosis sudo python setup.py install <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>7\u3001\u914d\u7f6egitosis<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1cp ~\/.ssh\/id_rsa.pub \/tmp sudo -H -u git gitosis-init &amp;lt; \/tmp\/id_rsa.pub sudo chmod 755 \/home\/git\/repositories\/gitosis-admin.git\/hooks\/post-update <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>8\u3001\u7ba1\u7406gitosis\u914d\u7f6e<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1cd ~ git clone git@hostname:\u7528\u6237\u540d\/gitosis-admin.git cd gitosis-admin\/ <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>\u5404\u4e2a\u7528\u6237\u6309\u7167\u524d\u9762\u63d0\u5230\u7684\u529e\u6cd5\u751f\u6210\u5404\u81ea\u7684ssh\u516c\u94a5\u6587\u4ef6\u540e\uff0c\u670d\u52a1\u5668\u7ba1\u7406\u5458\u628a\u6240\u6709\u4eba\u7684 ssh\u516c\u94a5\u6587\u4ef6\u90fd\u62ff\u6765\uff0c\u62f7\u8d1d\u5230keydir\u76ee\u5f55\u4e0b\u3002<\/p>\n<p>\u4fee\u6539gitosis.conf\u6587\u4ef6\uff0c\u5982\u4e0b\u6240\u793a<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/><\/div><\/td><td><div class=\"text codecolorer\">1[gitosis] <br \/>\n2<br \/>\n3[group gitosis-admin] writable = gitosis-admin members = a@server1 <br \/>\n4<br \/>\n5[group developers] writable = helloworld members = a@server1 b@server2 <br \/>\n6<br \/>\n7[group test] &nbsp;readonly = helloworld members = c@server3 <br \/>\n8<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\u8868\u8fbe\u4e86\u5982\u4e0b\u542b\u4e49\uff1agitosis-admin\u7ec4\u6210\u5458\u6709a\uff0c\u8be5\u7ec4\u5bf9gitosis-admin\u4ed3\u5e93\u6709\u8bfb\u5199\u6743\u9650\uff1b developers\u7ec4\u6709a\uff0cb\u4e24\u4e2a\u6210\u5458\uff0c\u8be5\u7ec4\u5bf9helloworld\u4ed3\u5e93\u6709\u8bfb\u5199\u6743\u9650\uff1b test\u7ec4\u6709c\u4e00\u4e2a\u6210\u5458\uff0c\u5bf9helloworld\u4ed3\u5e93\u6709\u53ea\u8bfb\u6743\u9650\u3002 \u5f53\u7136\u76ee\u524d\u8fd9\u4e9b\u914d\u7f6e\u6587\u4ef6\u7684\u4fee\u6539\u53ea\u662f\u5728\u4f60\u7684\u672c\u5730\uff0c\u4f60\u5fc5\u987b\u63a8\u9001\u5230gitserver\u4e0a\u624d\u80fd\u771f\u6b63\u751f\u6548\u3002 \u52a0\u5165\u65b0\u6587\u4ef6\u3001\u63d0\u4ea4\u5e76push\u5230git\u670d\u52a1\u5668\uff1a<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1git add . git commit -am &amp;quot;add helloworld project and users&amp;quot; git remote add origin ssh:\/\/git@hostname\/helloworld.git git push origin master <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>9\u3001\u5b89\u88c5apache2<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1sudo apt-get install apache2 <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>10\u3001\u5b89\u88c5gitweb<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1sudo apt-get install gitweb <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>11\u3001\u914d\u7f6e gitweb<\/p>\n<p>\u9ed8\u8ba4\u6ca1\u6709 css \u52a0\u8f7d\uff0c\u628a gitweb \u8981\u7528\u7684\u9759\u6001\u6587\u4ef6\u8fde\u63a5\u5230 DocumentRoot \u4e0b\uff1a<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1cd \/var\/www\/ sudo ln -s \/usr\/share\/gitweb\/* . <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>\u4fee\u6539\u914d\u7f6e\uff1a<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1sudo vi \/etc\/gitweb.conf <br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>\u5c06 $projectroot \u6539\u4e3agit\u4ed3\u5e93\u5b58\u50a8\u76ee\u5f55(\u4f8b\u5982\uff1a\/home\/git\/repositories)\uff0c\u4fdd\u5b58\u540e\u5237\u65b0\u6d4f\u89c8\u5668\u3002<\/p>\n<p>\u5982\u679c\u6ca1\u6709\u627e\u5230\u9879\u76ee\uff0c\u4f60\u9700\u8981\u5c06$projectroot\/*.git \u7684\u5c5e\u6027\u6539\u4e3a755\uff0c\u8ba9apache\u7528\u6237\u6709\u53ef\u8bfb\u6743\u9650\u3002\u53ef\u4ee5\u53ea\u6539\u4f60\u9700\u8981\u8ba9\u522b\u4eba\u901a\u8fc7web\u8bbf\u95ee\u7684\u90a3\u4e2agit\u3002 <a href=\"http:\/\/localhost\/cgi-bin\/gitweb.cgi\">http:\/\/localhost\/cgi-bin\/gitweb.cgi<\/a><\/p>\n<p>\u4fee\u6539\/etc\/gitweb.conf \u5185\u5bb9\uff1a<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/>9<br \/>10<br \/>11<br \/>12<br \/>13<br \/>14<br \/>15<br \/>16<br \/>17<br \/>18<br \/>19<br \/>20<br \/><\/div><\/td><td><div class=\"text codecolorer\">1# path to git projects (&amp;lt;project&amp;gt;.git) #$projectroot = &amp;quot;\/var\/cache\/git&amp;quot;; $projectroot = &amp;quot;\/home\/git\/repositories&amp;quot;; <br \/>\n2<br \/>\n3# directory to use for temp files $git_temp = &amp;quot;\/tmp&amp;quot;; <br \/>\n4<br \/>\n5# target of the home link on top of all pages $home_link = $my_uri || &amp;quot;\/&amp;quot;; <br \/>\n6<br \/>\n7# html text to include at home page $home_text = &amp;quot;indextext.html&amp;quot;; <br \/>\n8<br \/>\n9# file with project list; by default, simply scan the projectroot dir. $projects_list = $projectroot; <br \/>\n10<br \/>\n11# stylesheet to use @stylesheets = (&amp;quot;\/gitweb\/static\/gitweb.css&amp;quot;); <br \/>\n12<br \/>\n13# javascript code for gitweb $javascript = &amp;quot;gitweb\/static\/gitweb.js&amp;quot;; <br \/>\n14<br \/>\n15# logo to use $logo = &amp;quot;\/gitweb\/static\/git-logo.png&amp;quot;; <br \/>\n16<br \/>\n17# the &amp;#x27;favicon&amp;#x27; $favicon = &amp;quot;\/gitweb\/static\/git-favicon.png&amp;quot;; <br \/>\n18<br \/>\n19# git-diff-tree(1) options to use for generated patches #@diff_opts = (&amp;quot;-M&amp;quot;); @diff_opts = (); <br \/>\n20<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>12\u3001\u914d\u7f6eapache2<\/p>\n<p>ubuntu\u4e2d\u9ed8\u8ba4\u7684web\u76ee\u5f55\u662f\/var\/www\uff0c\u9ed8\u8ba4\u7684cgi\u76ee\u5f55\u662f \/usr\/lib\/cgi-bin\/,\u5b89\u88c5\u5b8c\u6210gitweb\u540e\uff0cgitweb\u7684gitweb.cgi\u4f1a\u81ea\u52a8\u653e\u7f6e\u5230\u8be5\u76ee\u5f55\u4e0b\u3002<\/p>\n<p>\u5982\u679c\u4f60\u7684cgi\u8def\u5f84\u4e0d\u662f\u9ed8\u8ba4\u7684\/usr\/lib\/cgi-bin\/\uff0c\u9700\u8981\u5c06gitweb\u5b89\u88c5\u5728\/usr\/lib\/cgi-bin\u4e2d\u7684 gitweb.cgi\u590d\u5236\u5230\u539f\u6765\u914d\u7f6e\u7684cgi-bin\u8def\u5f84\uff0c\u5e76\u5728apache\u7684\u914d\u7f6e\u6587\u4ef6\/etc\/apache2\/apache.conf\u672b\u5c3e\u52a0\u4e0a\u4ee5\u4e0b\u5185 \u5bb9\uff1a<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/>9<br \/>10<br \/>11<br \/>12<br \/>13<br \/>14<br \/>15<br \/><\/div><\/td><td><div class=\"text codecolorer\">1SetEnv &nbsp;GITWEB_CONFIG &nbsp; \/etc\/gitweb.conf &nbsp;<br \/>\n2&amp;lt;Directory &amp;quot;\/srv\/www\/cgi-bin\/gitweb&amp;quot;&amp;gt;<br \/>\n3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Options FollowSymlinks ExecCGI<br \/>\n4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Allow from all<br \/>\n5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AllowOverride all &nbsp; &nbsp; &nbsp; <br \/>\n6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Order allow,deny &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br \/>\n7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&amp;lt;Files gitweb.cgi&amp;gt;<br \/>\n8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetHandler cgi-script &nbsp; &nbsp; &nbsp; <br \/>\n9 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&amp;lt;\/Files&amp;gt; &nbsp; <br \/>\n10 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RewriteEngine on<br \/>\n11 &nbsp; &nbsp; &nbsp; RewriteCond\u00a0%{REQUEST_FILENAME}\u00a0!-f<br \/>\n12 &nbsp; &nbsp; &nbsp; RewriteCond\u00a0%{REQUEST_FILENAME}\u00a0!-d<br \/>\n13 &nbsp; &nbsp; &nbsp; RewriteRule ^.* \/gitweb.cgi\/$0 [L,PT]<br \/>\n14&amp;lt;\/Directory&amp;gt; <br \/>\n15<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>\u91cd\u65b0\u542f\u52a8apache\uff1asudo \/etc\/init.d\/apache2 restart\uff0c\u8bbf\u95ee<a href=\"http:\/\/localhost\/cgi-bin\/gitweb.cgi\">http:\/\/localhost\/cgi-bin\/gitweb.cgi<\/a><\/p>\n<p>13\u3001\u53c2\u8003\uff1a<\/p>\n<p>Git Reference<\/p>\n<p>ArchLinux\u4e0b\u5b89\u88c5git, gitosis, gitweb\u670d\u52a1<\/p>\n<p>Git\u670d\u52a1\u5668\u5728Ubuntu\u4e2d\u7684\u642d\u5efa<\/p>\n<p>Ubuntu\u4e2dGit\u670d\u52a1\u5668\u642d\u5efa<\/p>\n<p>Git\u670d\u52a1\u5668Gitosis\u67b6\u8bbe\u6307\u5357<\/p>\n<p>gitweb\u5728ubuntu\u4e0a\u7684\u914d\u7f6e<\/p>\n<p>git\u901a\u8fc7ssh\u8fdb\u884c\u8ba4\u8bc1\u8fde\u63a5<\/p>\n<p>=======================================================================<\/p>\n<h2>GIT server build up<br \/>\n<!-- -->\u524d\u51e0\u5929\u8bf4\u7684\u4efb\u52a1\u542f\u52a8\u4e86\uff0c\u867d\u7136server\u8fd8\u5728\u91c7\u8d2d\u6d41\u7a0b\u4e2d\u3002\u4f46\u5df2\u7ecf\u5728\u4e00\u53f0PC\u673a\u4e0a\u641e\u8d77\u6765\uff0c\u4f9b\u5c0f\u7ec4\u5185\u90e8\u6d4b\u8bd5\u5566\u3002\u5728\u6b64\u628a\u8fc7\u7a0b\u8bb0\u5f55\u4e0b\u6765\u5427\uff1a<br \/>\n<!-- -->\u786c\u4ef6\u9700\u6c42\uff1a\u4e00\u53f0linux\u7535\u8111\uff0c\u5728\u516c\u53f8\u5c40\u57df\u7f51\u4e0b\u6709\u72ec\u7acbIP\uff0c\u5e76\u4e14\u4fdd\u8bc1\u5c0f\u7ec4\u6bcf\u4e2a\u4eba\u90fd\u80fdping\u901a\uff1b<br \/>\n<!-- -->\u8f6f\u4ef6\u9700\u6c42\uff1agit-core, gitosis, openssh-server, openssh-client<br \/>\n<!-- -->\u5b89\u88c5git\u548copenssh\uff1a<br \/>\n<!-- -->$ sudo apt-get install git-core openssh-server openssh-client<br \/>\n<!-- -->\u65b0\u52a0\u7528\u6237git\uff0c\u8be5\u7528\u6237\u5c06\u4f5c\u4e3a\u6240\u6709\u4ee3\u7801\u4ed3\u5e93\u548c\u7528\u6237\u6743\u9650\u7684\u7ba1\u7406\u8005\uff1a<br \/>\n<!-- -->$ sudo useradd -m git<br \/>\n<!-- -->\u4e3agit\u8bbe\u7f6e\u5bc6\u7801\uff1a<br \/>\n<!-- -->$ sudo password git<br \/>\n<!-- -->\u5efa\u7acb\u4e00\u4e2agit\u4ed3\u5e93\u7684\u5b58\u50a8\u70b9\uff0c\u6211\u653e\u5728\u4e86\/opt\/git\u4e0b\uff0c\u5e76\u4e14\u8ba9\u51fa\u4e86git\u4ee5\u5916\u7684\u7528\u6237\u5bf9\u6b64\u76ee\u5f55\u65e0\u4efb\u4f55\u6743\u9650\uff1a<br \/>\n<!-- -->$ mkdir \/opt\/git<br \/>\n<!-- -->$ sudo chow git:git \/opt\/git<br \/>\n<!-- -->$ sudo chmod 700 \/opt\/git<br \/>\n<!-- -->\u521d\u59cb\u5316\u4e00\u4e0b\u670d\u52a1\u5668\u7684git\u7528\u6237\uff0c\u8fd9\u4e00\u6b65\u5176\u5b9e\u662f\u4e3a\u4e86\u5b89\u88c5gitosis\u505a\u51c6\u5907\uff0c\u5f53\u7136\u5728\u4efb\u4f55\u4e00\u53f0\u673a\u5668\u4e0a\u4f7f\u7528git\uff0c\u7b2c\u4e00\u6b21\u5fc5\u987b\u8981\u521d\u59cb\u5316\u4e00\u4e0b\uff0cgit\u5411\u6765\u4e0d\u641e\u201c\u77e5\u540d\u4e0d\u5177\u201d\u90a3\u4e00\u5957\uff1a<br \/>\n<!-- -->$ git config &#8211;global user.name &quot;name&quot;<br \/>\n<!-- -->$ git config &#8211;global user.email &quot;myemail&quot;<br \/>\n<!-- -->\u5b89\u88c5\u4e00\u4e0bpython\u7684setup tool\uff0c \u8fd9\u4e2a\u4e5f\u662f\u4e3a\u4e86gitosis\u505a\u51c6\u5907\uff1a<br \/>\n<!-- -->$ apt-get install python-setuptools<br \/>\n<!-- -->\u83b7\u5f97gitosis\u5305\uff1a<br \/>\n<!-- -->$ cd \/tmp<br \/>\n<!-- -->$ git clone git:\/\/eagain.net\/gitosis.git<br \/>\n<!-- -->$ cd gitosis<br \/>\n<!-- -->$ sudo python setup.py install<br \/>\n<!-- -->\u5207\u6362\u5230git\u7528\u6237\u4e0b\uff1a<\/h2>\n<p>$\u00a0\u00a0su &#8211; git<br \/>\n<!-- -->\u9ed8\u8ba4\u72b6\u6001\u4e0b\uff0cgitosis\u4f1a\u5c06git\u4ed3\u5e93\u653e\u5728git\u7528\u6237\u7684home\u4e0b\uff0c\u6240\u4ee5\u6211\u4eec\u505a\u4e00\u4e2a\u94fe\u63a5\u5230\/opt\/git<br \/>\n<!-- -->$ ln -s \/opt\/git \/home\/git\/repositories<br \/>\n<!-- -->$ exit<br \/>\n<!-- -->\u518d\u6b21\u8fd4\u56de\u5230\u9ed8\u8ba4\u7528\u6237\u3002<br \/>\n<!-- -->\u5982\u679c\u4f60\u5c06\u4f5c\u4e3agit\u670d\u52a1\u5668\u7684\u7ba1\u7406\u5458\uff0c\u90a3\u4e48\u5728\u4f60\u7684\u7535\u8111\u4e0a\u751f\u6210ssh\u516c\u94a5\uff1a<br \/>\n<!-- -->$ ssh-keygen -t rsa<br \/>\n<!-- -->\u5c06\u516c\u94a5\u62f7\u8d1d\u5230\/tmp\u4e0b\uff0c\u5e76\u7ed9\u5176\u4ed6\u4eba\u4ee5\u8bfb\u6743\u9650\uff1a<br \/>\n<!-- -->$ cp ~\/.ssh\/id_rsa.pub \/tmp &amp;&amp; chmod a+r \/tmp\/id_rsa.pub<br \/>\n<!-- -->\u8ba9gitosis\u8fd0\u884c\u8d77\u6765\uff1a<br \/>\n<!-- -->$ sudo -H -u git gitosis-init &lt; \/tmp\/id_dsa.pub<br \/>\n<!-- -->Initialized empty Git repository in \/opt\/git\/gitosis-admin.git\/<br \/>\n<!-- -->Reinitialized existing Git repository in \/opt\/git\/gitosis-admin.git\/<br \/>\n<!-- -->gitosis\u7684\u6709\u8da3\u4e4b\u5904\u5728\u4e8e\uff0c\u5b83\u901a\u8fc7\u4e00\u4e2agit\u4ed3\u5e93\u6765\u7ba1\u7406\u914d\u7f6e\u6587\u4ef6\uff0c\u4ed3\u5e93\u5c31\u653e\u5728\u4e86\/opt\/git\/gitosis-admin.git\u3002\u6211\u4eec\u9700\u8981\u4e3a\u4e00\u4e2a\u6587\u4ef6\u52a0\u4e0a\u53ef\u6267\u884c\u6743\u9650\uff1a<br \/>\n<!-- -->$sudo chmod 755 \/opt\/git\/gitosis-admin.git\/hooks\/post-update<br \/>\n<!-- -->\u6211\u4eec\u5728\u670d\u52a1\u5668\u4e0a\u65b0\u5efa\u4e00\u4e2a\u7a7a\u7684\u9879\u76ee\u4ed3\u5e93\u4f9b\u5927\u5bb6\u6d4b\u8bd5\u4e00\u4e0b\uff0c\u6211\u5efa\u4e86\u4e00\u4e2a\u53eb\u201cteamwork\u201d\u7684\u4ed3\u5e93\u3002<br \/>\n<!-- -->\u5207\u6362\u5230git\u7528\u6237\uff1a<br \/>\n<!-- -->$ su &#8211; git<br \/>\n<!-- -->$ cd \/opt\/git<br \/>\n<!-- -->$ mkdir teamwork.git<br \/>\n<!-- -->$ cd teamwork.git<br \/>\n<!-- -->$ git init &#8211;bare<br \/>\n<!-- -->\u5728\u4f60\u81ea\u5df1\u7684\u7535\u8111\u91cc\uff0c\u628agitosis-admin.git\u8fd9\u4e2a\u4ed3\u5e93clone\u4e0b\u6765\uff0c\u8fd9\u6837\u4f60\u5c31\u53ef\u4ee5\u4ee5\u7ba1\u7406\u5458\u7684\u8eab\u4efd\u4fee\u6539\u914d\u7f6e\u4e86\u3002<br \/>\n<!-- -->\u5728\u4f60\u7684\u7535\u8111\u91cc\uff1a<br \/>\n<!-- -->$ git clone git@git-server-ip:gitosis-admin.git<br \/>\n<!-- -->$ cd gitosis-admin<br \/>\n<!-- -->\u73b0\u5728\u628a\u4f60\u4eecteam\u6240\u6709\u4eba\u7684ssh\u516c\u94a5\u6587\u4ef6\u90fd\u62ff\u6765\uff0c\u6309\u540d\u5b57\u547d\u540d\u4e00\u4e0b\uff0c\u6bd4\u5982kevin.pub, cindy.pub, peng.pub\u7b49\uff0c\u7edf\u7edf\u62f7\u8d1d\u5230keydir\u4e0b\uff1a<br \/>\n<!-- -->$ cp ~\/kevin.pub ~\/cindy.pub <del>\/peng.pub keydir\/<br \/>\n<!-- -->\u4fee\u6539gitosis.conf\u6587\u4ef6\uff0c\u6211\u7684\u914d\u7f6e\u5927\u81f4\u5982\u4e0b\uff1a<br \/>\n<!-- -->[gitosis]<br \/>\n<!-- -->[group gitosis-admin]<br \/>\n<!-- -->writable = gitosis-admin<br \/>\n<!-- -->members = volans<br \/>\n<!-- -->[group team]<br \/>\n<!-- -->writable = teamwork<br \/>\n<!-- -->members = volans kevin cindy<br \/>\n<!-- -->[group team_ro]<br \/>\n<!-- -->readonly = teamwork<br \/>\n<!-- -->members = peng<br \/>\n<!-- -->\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\u8868\u8fbe\u4e86\u5982\u4e0b\u542b\u4e49\uff1agitosis-admin\u7ec4\u6210\u5458\u6709volans\uff0c\u8be5\u7ec4\u5bf9gitosis-admin\u4ed3\u5e93\u6709\u8bfb\u5199\u6743\u9650\uff1bteam\u7ec4\u6709 volans, kevin, cindy\u4e09\u4e2a\u6210\u5458\uff0c\u6539\u7ec4\u5bf9teamwork\u4ed3\u5e93\u6709\u8bfb\u5199\u6743\u9650\uff1b team_ro\u7ec4\u6709peng\u4e00\u4e2a\u6210\u5458\uff0c\u5bf9teamwork\u4ed3\u5e93\u6709\u53ea\u8bfb\u6743\u9650\u3002<br \/>\n<!-- -->\u5f53\u7136\u76ee\u524d\u8fd9\u4e9b\u914d\u7f6e\u6587\u4ef6\u7684\u4fee\u6539\u53ea\u662f\u5728\u4f60\u7684\u672c\u5730\uff0c\u4f60\u5fc5\u987b\u63a8\u9001\u5230\u8fdc\u7a0b\u7684gitserver\u4e0a\u624d\u80fd\u771f\u6b63\u751f\u6548\u3002<br \/>\n<!-- -->\u52a0\u5165\u65b0\u6587\u4ef6\u3001\u63d0\u4ea4\u5e76push\u5230git\u670d\u52a1\u5668\uff1a<br \/>\n<!-- -->$ git add .<br \/>\n<!-- -->$ git commit -am &quot;add teamwork project and users&quot;<br \/>\n<!-- -->$ git push origin master<br \/>\n<!-- -->\u597d\u4e86\uff0c\u73b0\u5728\u670d\u52a1\u5668\u5c31\u642d\u5efa\u5b8c\u4e86\uff0c\u5e76\u4e14\u6709\u4e00\u4e2a\u7a7a\u7684\u9879\u76eeteamwork\u5728\u670d\u52a1\u5668\u4e0a\u3002\u63a5\u4e0b\u6765\u5462\uff1f\u5f53\u7136\u662f\u6d4b\u8bd5\u4e00\u4e0b\uff0c\u7a7a\u4ed3\u5e93\u662f\u4e0d\u80fdclone\u7684\uff0c\u6240\u4ee5\u9700\u8981\u67d0\u4e00\u4e2a\u6709\u5199\u6743\u9650\u7684\u4eba\u521d\u59cb\u5316\u4e00\u4e2a\u7248\u672c\u3002\u5c31\u6211\u6765\u505a\u5427<br \/>\n<!-- -->$ cd<br \/>\n<!-- -->$ mkdir teamwork-ori<br \/>\n<!-- -->$ cd teamwork-ori<br \/>\n<!-- -->$ git init<br \/>\n<!-- -->$ echo &quot;\/*add what you want*\/&quot; &gt; main.c<br \/>\n<!-- -->$ git add .<br \/>\n<!-- -->$ git commit -am &quot;initial version&quot;<br \/>\n<!-- -->$ git remote add oringin git@git-server-ip:teamwork.git<br \/>\n<!-- -->$ git push origin master<br \/>\n<!-- -->\u5230\u6b64\u4e3a\u6b62teamwork\u5df2\u7ecf\u6709\u4e86\u4e00\u4e2a\u7248\u672c\u4e86\uff0cteam\u7684\u5176\u4ed6\u6210\u5458\u53ea\u8981\u5148clone\u4e00\u4e0bteamwork\u4ed3\u5e93\uff0c\u5c31\u53ef\u4ee5\u4efb\u610f\u73a9\u513f\u4e86\u3002<br \/>\n<!-- -->$ git clone git@git@git-server-ip:teamwork.git<br \/>\n<!-- -->\u53e6\u5916\uff1a\u5982\u679c\u4f60\u6709\u4e00\u4e2a\u73b0\u6210\u7684git\u4ed3\u5e93\uff0c\u60f3\u653e\u5230gitserver\u4e0a\u4f9bteam\u4f7f\u7528\uff08\u6bd4\u5982\u4f60clone\u4e86\u4e00\u4e2a\u5b98\u65b9\u7684kernel\u4ed3\u5e93\uff0c\u60f3\u5728\u5185\u90e8\u4f7f\u7528\u5b83\u4f5c\u4e3a\u57fa\u7840\u4ed3\u5e93\uff09\uff0c\u600e\u4e48\u529e\u5462\u3002<br \/>\n<!-- -->\u9996\u5148\u9700\u8981\u4ece\u4f60\u7684\u5de5\u4f5c\u4ed3\u5e93\u4e2d\u5f97\u5230\u4e00\u4e2a\u7eaf\u4ed3\u5e93, \u6bd4\u5982\u4f60\u7684\u5de5\u4f5c\u76ee\u5f55\u4e3a<\/del>\/kernel, \u4f60\u60f3\u5bfc\u51fa\u7eaf\u4ed3\u5e93\u5230\u4f60\u7684\u4f18\u76d8\u91cc\uff0c\u7136\u540e\u62f7\u8d1d\u5230gitserver\u4e0a\u53bb\u3002<br \/>\n<!-- -->$ git clone &#8211;vare ~\/kernel \/media\/udisk<br \/>\n<!-- -->\u7136\u540e\u5c31\u62ff\u7740\u4f18\u76d8\uff0c\u4ea4\u7ed9gitserver\u7684\u7ba1\u7406\u5458\uff0c\u8ba9\u4ed6\u62f7\u8d1d\u5230\/opt\/git\/\u4e0b\uff0c\u540c\u65f6\u9700\u8981\u914d\u7f6egitosis\u76f8\u5173\u914d\u7f6e\u6587\u4ef6\u54e6\uff0c\u8fd9\u4e2a\u5c31\u4e0d\u7528\u518d\u8bf4\u4e86\u5427\u3002<\/p>\n<p>========================================================================<\/p>\n<p>\u6bd4\u8f83\u91cd\u8981\u7684\u6982\u5ff5\uff1a<\/p>\n<p>SSH \u534f\u8bae\u7528\u4e8e\u4e3a Git \u63d0\u4f9b\u8fdc\u7a0b\u8bfb\u5199\u64cd\u4f5c\uff0c\u662f\u8fdc\u7a0b\u5199\u64cd\u4f5c\u7684\u6807\u51c6\u670d\u52a1\uff0c\u5728\u667a\u80fdHTTP\u534f\u8bae\u51fa\u73b0\u4e4b\u524d\uff0c\u751a\u81f3\u662f\u5199\u64cd\u4f5c\u7684\u552f\u4e00\u6807\u51c6\u670d\u52a1\u3002<\/p>\n<p>\u5bf9\u4e8e\u62e5\u6709 SHELL \u6743\u9650\u7684 SSH \u767b\u5f55\u5e10\u53f7\uff0c\u53ef\u4ee5\u76f4\u63a5\u7528\u4e0b\u9762\u7684 git \u547d\u4ee4\u8bbf\u95ee\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>\n\n<div class=\"codecolorer-container text solarized-dark language-bash\" style=\"overflow:auto;white-space:nowrap;width:800px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">1$ git clone &amp;lt;username&amp;gt;@&amp;lt;server&amp;gt;:\/path\/to\/repo.git<br \/>\n2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n\n<\/pre>\n<p>\u8bf4\u660e\uff1a<\/p>\n<ul>\n<li>&lt;username&gt;<!-- --> \u662f\u670d\u52a1\u5668 <!-- -->&lt;server&gt;<!-- --> \u4e0a\u7684\u7528\u6237\u5e10\u53f7\u3002<\/li>\n<li>\/path\/to\/repo.git \u662f\u670d\u52a1\u5668\u4e2d\u7248\u672c\u5e93\u7684\u7edd\u5bf9\u8def\u5f84\u3002\u82e5\u7528\u76f8\u5bf9\u8def\u5f84\u5219\u76f8\u5bf9\u4e8e username \u7528\u6237\u7684\u4e3b\u76ee\u5f55\u800c\u8a00\u3002<\/li>\n<li>\u5982\u679c\u91c7\u7528\u53e3\u4ee4\u8ba4\u8bc1\uff0c\u4e0d\u80fd\u50cf HTTPS \u534f\u8bae\u90a3\u6837\u53ef\u4ee5\u5728 URL \u4e2d\u540c\u65f6\u7ed9\u51fa\u767b\u5f55\u540d\u548c\u53e3\u4ee4\uff0c\u5fc5\u987b\u6bcf\u6b21\u8fde\u63a5\u65f6\u8f93\u5165\u3002<\/li>\n<li>\u5982\u679c\u91c7\u7528\u516c\u94a5\u8ba4\u8bc1\uff0c\u5219\u65e0\u987b\u8f93\u5165\u53e3\u4ee4\u3002<\/li>\n<\/ul>\n<p>SSH \u534f\u8bae\u6765\u5b9e\u73b0 Git \u670d\u52a1\uff0c\u6709\u5982\u4e0b\u65b9\u5f0f\uff1a<\/p>\n<ul>\n<li>\u5176\u4e00\u662f\u7528\u6807\u51c6\u7684 ssh \u5e10\u53f7\u8bbf\u95ee\u7248\u672c\u5e93\u3002\u5373\u7528\u6237\u5e10\u53f7\u53ef\u4ee5\u76f4\u63a5\u767b\u5f55\u5230\u670d\u52a1\u5668\uff0c\u83b7\u5f97 shell\u3002<\/li>\n<li>\u53e6\u5916\u7684\u65b9\u5f0f\u662f\uff0c\u6240\u6709\u7528\u6237\u90fd\u4f7f\u7528\u540c\u4e00\u4e2a\u4e13\u7528\u7684 SSH \u5e10\u53f7\u8bbf\u95ee\u7248\u672c\u5e93\u3002\u5404\u4e2a\u7528\u6237\u901a\u8fc7\u516c\u94a5\u8ba4\u8bc1\u7684\u65b9\u5f0f\u7528\u6b64\u4e13\u7528 SSH \u5e10\u53f7\u8bbf\u95ee\u7248\u672c\u5e93\u3002\u800c\u7528\u6237\u5728\u8fde\u63a5\u65f6\u4f7f\u7528\u7684\u4e0d\u540c\u7684\u516c\u94a5\u53ef\u4ee5\u7528\u4e8e\u533a\u5206\u4e0d\u540c\u7684\u7528\u6237\u8eab\u4efd\u3002<\/li>\n<\/ul>\n<p>Gitosis \u548c Gitolite \u5c31\u662f\u5b9e\u73b0\u8be5\u65b9\u5f0f\u7684\u4e24\u4e2a\u670d\u52a1\u5668\u8f6f\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git\u670d\u52a1\u5668Gitosis\u5b89\u88c5\u8bbe\u7f6e \u51fa\u81eaUbuntu\u4e2d\u6587 1\u3001\u5b89\u88c5 openssh\u670d\u52a1\u5668 121sudo apt-get install openssh-server openssh-client 2 2\u3001\u521b\u5efa\u4e2a\u4eba\u516c\u94a5\u548c\u79c1\u94a5 \u5728\u9ed8\u8ba4\u7528\u6237\u7684\u4e3b\u76ee\u5f55\u8def\u5f84\u4e0b\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u6309\u7167\u63d0\u793a\u521b\u5efa\u516c\u94a5\u548c\u79c1\u94a5 121ssh-keygen -t rsa 2 \u9ed8\u8ba4\u751f\u62102048\u4f4d\uff0c\u5982\u679c\u9700\u8981\u63d0\u9ad8\u5b89\u5168\u7ea7\u522b\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u547d\u4ee4\u521b\u5efa\u516c\u94a5\u548c\u79c1\u94a5 121ssh-keygen -t rsa -b 4096 2 \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u516c\u94a5\u548c\u79c1\u94a5\u4f1a\u4fdd\u5b58\u5728~\/.ssh\u76ee<\/p>\n","protected":false},"author":1,"featured_media":6522,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[2],"tags":[292,222,170,17,393,389,23,9,26,10],"collection":[],"_links":{"self":[{"href":"https:\/\/aqzt.com\/wp-json\/wp\/v2\/posts\/22951"}],"collection":[{"href":"https:\/\/aqzt.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aqzt.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aqzt.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aqzt.com\/wp-json\/wp\/v2\/comments?post=22951"}],"version-history":[{"count":0,"href":"https:\/\/aqzt.com\/wp-json\/wp\/v2\/posts\/22951\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aqzt.com\/wp-json\/wp\/v2\/media\/6522"}],"wp:attachment":[{"href":"https:\/\/aqzt.com\/wp-json\/wp\/v2\/media?parent=22951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aqzt.com\/wp-json\/wp\/v2\/categories?post=22951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aqzt.com\/wp-json\/wp\/v2\/tags?post=22951"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/aqzt.com\/wp-json\/wp\/v2\/collection?post=22951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}