<?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>HattaraTecLog &#187; git</title>
	<atom:link href="http://teclog.hattara.info/?feed=rss2&#038;tag=git" rel="self" type="application/rss+xml" />
	<link>http://teclog.hattara.info</link>
	<description>LinuxネタとかPHPネタとかの技術ログ</description>
	<lastBuildDate>Tue, 18 Nov 2014 12:15:20 +0000</lastBuildDate>
	<language>ja</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8</generator>
	<item>
		<title>メモ：cpanm git:// 使うならgitのバージョンに注意</title>
		<link>http://teclog.hattara.info/?p=438</link>
		<comments>http://teclog.hattara.info/?p=438#comments</comments>
		<pubDate>Wed, 09 Oct 2013 01:02:29 +0000</pubDate>
		<dc:creator><![CDATA[hattara]]></dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[cpanm]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://teclog.hattara.info/?p=438</guid>
		<description><![CDATA[こんにちは。 今日も無駄に時間をつかったお話です。 先日のYAPCでYappoさんが発表されてました Ksgk [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>こんにちは。<br />
今日も無駄に時間をつかったお話です。</p>
<p>先日のYAPCでYappoさんが発表されてました <a href="https://github.com/yappo/p5-Ksgk" target="_blank">Ksgk</a>を入れるべく<br />
cpanmをしたら、なぜかcloneできずにエラーという問題にぶちあたりました。</p>
<p>環境としては、Mac上のVMwareで動いているCentOSです。</p>
<p><code><br />
$cpanm -nL local git://github.com/yappo/p5-Ksgk.git<br />
Cloning git://github.com/yappo/p5-Ksgk.git ... FAIL<br />
! Failed cloning git repository git://github.com/yappo/p5-Ksgk.git<br />
! Couldn't find module or a distribution git://github.com/yappo/p5-Ksgk.git<br />
</code></p>
<p>【結論】<br />
結論ファーストでいうと、gitのバージョンが、古かったため、<br />
最新版にあげたら回避できたという話です。</p>
<p>【経緯・内容】<br />
gitがおかしいのかなと思って確認した以下のgitコマンドは問題なく処理できました。</p>
<p><code><br />
$ git clone git://github.com/yappo/p5-Ksgk.git<br />
</code></p>
<p>じゃあ、cpanmコマンドがおかしいのかなと思って、以下を試すも問題なし。<br />
<code><br />
$ cpanm Log::Minimal<br />
</code></p>
<p>gitもcpanmも問題なさそうだ。<br />
次に考えられるのは、cpanm + git:// だと問題がでるんじゃないか。<br />
以下の感じで別のgithub上のコードを取り込もうとしたところ、<br />
こちらも同じエラーがでました。</p>
<p><code><br />
$ cpanm -nL git://github.com/****<br />
</code></p>
<p>これで、cpanm + git://だと問題がでるというのが確定した。<br />
この時点で、ホスト側のMacでは、cpanm + git://でも問題なくできて、<br />
perlもcpanmも　Mac, CentOS両方とも同じバージョンで詰んだ感じしてました。<br />
そもそもVMwareがNatだから何か引っかかってるのかなとか　<br />
どんどん道を外れていったときに、<br />
@dayflower師が 「gitのバージョンじゃね」と一言で解決してくれました。<br />
ありがたや。</p>
<p>ちなみにMac上のgitが、git &#8211;versionでみると、「git version 1.7.12.4 (Apple Git-37)」<br />
VM上のCent上のgitが、「git version 1.5.2.1」<br />
とりあえずgitのバージョンあげて、問題回避できました。</p>
<p>というお話でした。</p>
]]></content:encoded>
			<wfw:commentRss>http://teclog.hattara.info/?feed=rss2&#038;p=438</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>tig blameを今更知った。。</title>
		<link>http://teclog.hattara.info/?p=402</link>
		<comments>http://teclog.hattara.info/?p=402#comments</comments>
		<pubDate>Wed, 24 Jul 2013 14:26:17 +0000</pubDate>
		<dc:creator><![CDATA[hattara]]></dc:creator>
				<category><![CDATA[git]]></category>
		<category><![CDATA[option]]></category>
		<category><![CDATA[tig]]></category>

		<guid isPermaLink="false">http://teclog.hattara.info/?p=402</guid>
		<description><![CDATA[今日もメモ。 git blameもtigも　かなり前から使ってるわけですが、 tigにオプションがあるのを知ら [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>今日もメモ。</p>
<p>git blameもtigも　かなり前から使ってるわけですが、<br />
tigにオプションがあるのを知らなかった</p>
<p>ちゃんとドキュメントみてから使えよって話ですね。すいません。</p>
<p>ドキュメント：<a href="http://jonas.nitro.dk/tig/tig.1.html" title="tig(1) Manual Page" target="_blank">tig(1) Manual Page</a></p>
<p>具体的には、5パターン使えるようですね。</p>
<p>1. オプションなし</p>
<blockquote><p>tig</p></blockquote>
<p>　　まあ、これは普通のgit logを使い安くした感じ。</p>
<p>2. showオプション</p>
<blockquote><p>tig show Hogemoge.pm</p></blockquote>
<p>　　git showを見やすくした感じ</p>
<p>3. blameオプション</p>
<blockquote><p>tig blame Hogemoge.pm</p></blockquote>
<p>　　git blameを見やすくした感じ</p>
<p>4. statusオプション</p>
<blockquote><p>tig status</p></blockquote>
<p>　　git statusからgit diffがそのままいける感じで使いやすい感じ</p>
<p>5. gitコマンドの結果を取り込ませる</p>
<blockquote><p>tig < [git command output]</p></blockquote>
<p>　　どういう時に使いたいというイメージがわかない。。。</p>
<p>という感じでtig statusとか tig blameは使いやすそうという個人的なイメージ。</p>
]]></content:encoded>
			<wfw:commentRss>http://teclog.hattara.info/?feed=rss2&#038;p=402</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
