<?xml version="1.0" encoding="UTF-8"?>
<article>
  <body>&#12495;&#12510;&#12387;&#12383;&#12398;&#12391;&#35226;&#12360;&#12427;&#12383;&#12417;&#12395;&#35352;&#20107;&#12395;&#12375;&#12414;&#12375;&#12383;&#12290;

###&#12469;&#12540;&#12496;&#31561;&#12391;
shell&gt;&gt;
$ mkdir repo.git
$ cd repo.git
$ sudo git init --bare --shared=true
&lt;&lt;--

**&quot;&#31354;&quot;**&#12398;&#20849;&#26377;&#12522;&#12509;&#12472;&#12488;&#12522;&#12364;&#12391;&#12365;&#12414;&#12375;&#12383;&#12290;

###&#12525;&#12540;&#12459;&#12523;&#12510;&#12471;&#12531;&#12391;
&#12381;&#12398;&#24460;&#12289;remote add, add, commit, push

shell&gt;&gt;
git init
git remote add origin ssh://git.s21g.com/mnt/git/repo.git 
git add .
git commit -m &quot;initial import&quot;
git push origin master
&lt;&lt;--

&#12469;&#12540;&#12496;&#12398;repo.git&#12395;&#12501;&#12449;&#12452;&#12523;&#12364;&#36861;&#21152;&#12373;&#12428;&#12383;&#26178;&#28857;&#12391;clone&#12391;&#12365;&#12427;&#12424;&#12358;&#12395;&#12394;&#12426;&#12414;&#12377;&#12290;**&#31354;&#12398;&#12522;&#12509;&#12472;&#12488;&#12522;&#12434;clone&#12375;&#12424;&#12358;&#12392;&#12375;&#12390;&#12418;&#12456;&#12521;&#12540;**&#12364;&#20986;&#12414;&#12377;&#65306;

shell&gt;&gt;
$ git clone ssh://git.s21g.com/mnt/git/repo.git 
fatal: no matching remote head
&lt;&lt;--

###&#12362;&#12414;&#12369;&#65306;git URL&#12434;&#30906;&#35469;&#12377;&#12427; git remote show origin
shell&gt;&gt;
git remote show origin
* remote origin
  URL: ssh://git.s21g.com/mnt/git/repo.git
&lt;&lt;--
</body>
  <cached-tag-list>git</cached-tag-list>
  <comments-count type="integer">0</comments-count>
  <created-at type="datetime">2009-02-19T14:21:30+00:00</created-at>
  <daily-archive-id type="integer">1049</daily-archive-id>
  <filter-type>blue_stole</filter-type>
  <id type="integer">1312</id>
  <monthly-archive-id type="integer">137</monthly-archive-id>
  <pdf-digest nil="true"></pdf-digest>
  <permalink nil="true"></permalink>
  <published-at type="datetime">2009-02-19T14:22:00+00:00</published-at>
  <secret>4c2029f7-8487-4d3b-ade2-27bde35430f6</secret>
  <title>[git] &#20849;&#26377;&#12522;&#12509;&#12472;&#12488;&#12522;&#12434;&#20316;&#12427;&#65306;git init --bare --shared=true</title>
  <updated-at type="datetime">2009-04-03T10:40:21+00:00</updated-at>
  <user-id type="integer">3</user-id>
</article>
