<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>git &#8211; 扫地老僧的Blog</title>
	<atom:link href="https://doyj.com/tag/git/feed/" rel="self" type="application/rss+xml" />
	<link>https://doyj.com</link>
	<description>Laputa - 远方地平线，闪耀着光芒</description>
	<lastBuildDate>Mon, 13 Dec 2010 14:53:44 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>Git安装经验</title>
		<link>https://doyj.com/2010/12/13/</link>
					<comments>https://doyj.com/2010/12/13/#respond</comments>
		
		<dc:creator><![CDATA[oldmonk]]></dc:creator>
		<pubDate>Mon, 13 Dec 2010 14:53:44 +0000</pubDate>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[git]]></category>
		<guid isPermaLink="false">http://www.doyj.com/2010/12/13/</guid>

					<description><![CDATA[最近安装Git服务器折腾了很多时间， 其实就卡在一些小地方。大多数git安装指南提到的东西就不说了，就记录一下 &#8230; <a href="https://doyj.com/2010/12/13/" class="more-link">继续阅读<span class="screen-reade... ]]></description>
										<content:encoded><![CDATA[<p>最近安装Git服务器折腾了很多时间<img decoding="async" style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-sadsmile" alt="Sad smile" src="http://www.doyj.com/wp-content/uploads/2010/12/wlEmoticon-sadsmile.png" />， 其实就卡在一些小地方。大多数git安装指南提到的东西就不说了，就记录一下卡住我的两点：</p>
<ol>
<li>git访问接口有ssh, http, git://。 刚开始找到的安装指南这几种方式都实现了，于是也一样画葫芦做了一遍，尤其指南中说git:// 方式最快，所以特别看重这个。实现git://协议需要在服务器安装git-daemon, 在debian用apt-get install git-daemon-run安装， 记得要开放tcp 9418 端口。 后来发现压根不需要实现全部接口，只保留一种就足够了。 其中http方式是readonly的，而git://方式需要多开放一个端口，于是只保留了ssh方式     </li>
<li>桌面是windows，用msysgit+TortoisGit。msysgit用ssh-keygen生成的密钥，需要放到msysgit安装目录下的.ssh目录下，很多安装指南上说要放到C:\Users\[用户名]\.ssh下， 耽误了我很多时间。但这个密钥只是对命令行的git有效。 TortoiseGit要用随它一起安装的Puttygen生成密钥，其中的公钥不要保存文件，而是直接从生成窗口中拷贝，追加到服务器上authorized_keys里。某个指南讲的保存公钥文件再cat 公钥文件&gt;&gt;authorized_keys的方式是行不通的。 </li>
</ol>
]]></content:encoded>
					
					<wfw:commentRss>https://doyj.com/2010/12/13/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
