<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule" >
  <channel>
  <title>Fe and Ni</title>
  <link>http://treefrog1450.blog.shinobi.jp/</link>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://treefrog1450.blog.shinobi.jp/RSS/" />
  <description>多分まだ生きてます…。</description>
  <lastBuildDate>Wed, 25 Sep 2013 00:24:56 GMT</lastBuildDate>
  <language>ja</language>
  <copyright>© Ninja Tools Inc.</copyright>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" />

    <item>
    <title>rvm@mac で Ruby をアップグレードしようとしてエラー</title>
    <description>
    <![CDATA[ググったらトップ記事がちょっと古かったので。<a href="https://rvm.io/" title="" target="_blank"><br />
公式サイト</a> のDocumentation が充実しているので、そっちを見ればあまり問題なさそう。<br />
<br />
rvm list&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #インストール済みRuby一覧 もしくは<br />
ruby -v&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #今のバージョンを確認<br />
rvm list known #最新のバージョンを確認<br />
rvm upgrade 1.9.3-p194 1.9.3-p448 #p194からp448へアップグレード<br />
<br />
しかしやってみたらエラーotz<br />
brewのところでこけたようです。<br />
package_install_pkg-config_gcc46_libyaml_readline_libksba_openssl.log<br />
にログが残されていたので、それに従って<br />
<br />
brew tap --repair<br />
brew doctor<br />
<br />
Xcode の command line tools を入れてなかったのでインストール<br />
(一回再起動したけど、不要だったかも)<br />
<br />
予期せぬファイルがあるよ！みたいなWARNINGが出てたのでそれらを削除。<br />
参考にさせていただきました &gt; http://tech.nsymtks.jp/brew-doctor-get-errors/<br />
<br />
brew doctor でOKになったら再実行&hellip;<br />
&hellip;したらまだエラーotz<br />
今度はrvmのエラーっぽい。ログにしたがって<br />
<br />
rvm get stable<br />
<br />
で、再度 rvm upgrade 〜 を実行。<br />
<br />
&hellip;ようやくできましたー('A`;)]]>
    </description>
    <category>お仕事</category>
    <link>http://treefrog1450.blog.shinobi.jp/%E3%81%8A%E4%BB%95%E4%BA%8B/rvm%20%E3%81%A7%20ruby%20%E3%82%92%E3%82%A2%E3%83%83%E3%83%97%E3%82%B0%E3%83%AC%E3%83%BC%E3%83%89</link>
    <pubDate>Wed, 25 Sep 2013 00:24:56 GMT</pubDate>
    <guid isPermaLink="false">treefrog1450.blog.shinobi.jp://entry/118</guid>
  </item>
    <item>
    <title>通り魔？</title>
    <description>
    <![CDATA[なんか8/8深夜にだけ30件もアクセスが&hellip;なんかやったっけ&hellip;？]]>
    </description>
    <category>未選択</category>
    <link>http://treefrog1450.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/%E9%80%9A%E3%82%8A%E9%AD%94%EF%BC%9F</link>
    <pubDate>Fri, 06 Sep 2013 06:16:09 GMT</pubDate>
    <guid isPermaLink="false">treefrog1450.blog.shinobi.jp://entry/117</guid>
  </item>
    <item>
    <title>git rebase は怖くない…の？</title>
    <description>
    <![CDATA[branchA にコミットした変更を、branchAの元々の分岐元からじゃなくてbranchB（例えばmaster）のHEADから変更したようにみせるには<br /><br /><div style="text-align: left;"><span class="Apple-tab-span" style="white-space:pre">	</span>git checkout branchA</div><span class="Apple-tab-span" style="white-space:pre">	</span>git rebase branchB<br /><br />何事も無ければこれだけでおしまい。<br />「注意事項」は、<br /><br />・　rebaseすると元々のコミットのリビジョン(commit xxxx...)ではなく新しいリビジョンが振られる<br />・　ゆえに、リモートリポジトリにpushしたbranchをrebaseすると、pushできなくなる<br /><br />の2つ。<br />なんでそーなるの？っていうのは <a href="http://www.slideshare.net/kotas/git-15276118" target="_blank" title="こわくないGit">このへん</a> が詳しい。<br /><br />で、「rebaseしたらコンフリクトしちゃった！」ってのが困る。超困る。<br /><br /><i><span class="Apple-tab-span" style="white-space:pre">	</span>error: could not apply "リビジョン"... "コミットメッセージ"<br /><span class="Apple-tab-span" style="white-space:pre">	</span>hint: after resolving the conflicts, mark the corrected paths<br /><span class="Apple-tab-span" style="white-space:pre">	</span>hint: with 'git add &lt;paths&gt;' and run 'git rebase --continue'<br /></i><br />こんなこと言われる。<br /><br />【対処法】<br />とりあえず、言われた通りにする。<br /><br />error: ... っていうので、どのコミットでコンフリクトしたか分かるので、<br />そのコミットで変更したファイルの中身をチェック。<br />「ここでコンフリクトしてるよー！」っていうのがgitによって書かれているので、<br />「こんな感じにすればおk」って感じで自分で書き換える。<br />（gitに入れられた&lt;&lt;&lt;&lt;&lt;&lt;&lt;みたいな行やなんかは消す。）<br /><br />直したファイルを git add する。commit はしない。<br /><br />git rebase --continue する。<br />ちゃんとコンフリクトが直っていれば、rebaseの続きをやってくれる。<br /><br />余談その１：<br />コンフリクトの解消はまだよく分からないかも。<br />branchBのコミットとbranchAの自分のコミットの内容が両立できるようにしなきゃいけないんだと思うけど、超無理そうだったらどうするんだろう。<br />（今の所はそういうのはまだない）<br /><br />余談その２：<br />記事投稿ツールを「見ながら編集」というのに変えてみた。<br />…？まだよくわからない。<br /><br />]]>
    </description>
    <category>お仕事</category>
    <link>http://treefrog1450.blog.shinobi.jp/%E3%81%8A%E4%BB%95%E4%BA%8B/git%20rebase%20%E3%81%AF%E6%80%96%E3%81%8F%E3%81%AA%E3%81%84%E2%80%A6%E3%81%AE%EF%BC%9F</link>
    <pubDate>Mon, 10 Jun 2013 01:07:54 GMT</pubDate>
    <guid isPermaLink="false">treefrog1450.blog.shinobi.jp://entry/116</guid>
  </item>
    <item>
    <title>攻殻機動隊あるいは</title>
    <description>
    <![CDATA[ウェアラブル・コンピュータ、感覚補助機械等、サイボーグが徐々に実現しつつあるわけですが、自分も機械化するとしたらどこをやりたいかなぁというところを妄想する。<br />
まぁありきたりなところに落ち着いて、<br />
<br />
1. &nbsp;視覚<br />
メガネとかコンタクトレンズでも可。<br />
紫外線とか見えたらカコイイ。<br />
現実の視界に地図とか時計とかメールとかを重ねて見るとかそういうの。<br />
<br />
2. 聴覚<br />
iPod(ローカル/リモート問わず)を思考だけで操作して、イヤフォン付けなくても即座に曲を聞けるようにしたい。<br />
とはいえ話しかけられるとかクラクションとか、聞くべき音は届けて欲しい。<br />
<br />
2. 記憶 検索 or クリップ<br />
攻殻機動隊でありますが、名言を引用したり引用元を調べたりする機能。<br />
<br />
はー、はやく実現しないかなぁ。<br />
子ども生んで、ある程度育った頃に実用的な価格だったらやりたいくらいのイメージ。<br />
<br />
]]>
    </description>
    <category>日常</category>
    <link>http://treefrog1450.blog.shinobi.jp/%E6%97%A5%E5%B8%B8/%E6%94%BB%E6%AE%BB%E6%A9%9F%E5%8B%95%E9%9A%8A%E3%81%82%E3%82%8B%E3%81%84%E3%81%AF</link>
    <pubDate>Thu, 28 Feb 2013 03:08:20 GMT</pubDate>
    <guid isPermaLink="false">treefrog1450.blog.shinobi.jp://entry/115</guid>
  </item>
    <item>
    <title>gem install で permission denied</title>
    <description>
    <![CDATA[<br />
<a href="https://github.com/kmuto/review/blob/master/doc/quickstart.rdoc">ReVIEW</a>ってツールを使ってみようと思って gem install review したらpermission denied。<br />
<br />
<font style="color:#b22222;"><span style="background-color:#cccc99;">You don&#39;t have write permissions into the /Users/hoge/.rvm/gems/ruby-1.9.2-p318/bin directory.</span></font><br />
<br />
rvmが原因ぽいけどググってもrvm使ってる人は普通にgem installでおｋとしか書いてなくてよく分からず。<br />
(もうちょっと深く探せば何かあるかもしれない)<br />
<br />
問題のディレクトリを見てみたら、binだけオーナーがrootになっていた。(他は自分のユーザ名)<br />
なんでだろう？macportsとか関係あるのかしら？<br />
<br />
とりあえず<br />
<font style="color:#b22222;"><span style="background-color:#cccc99;">sudo chmod a+w bin</span></font><br />
<br />
して誤魔化した。<br />
これをするとインストールはできるけど、gemコマンド実行時に警告が出る。<br />
<font style="color:#b22222;"><span style="background-color:#cccc99;">warning: Insecure world writable dir</span></font><br />
<br />
うん、まぁそうだよね。<br />
<font style="color:#b22222;"><span style="background-color:#cccc99;">sudo chmod o-w bin</span></font><br />
<br />
してリトライ。警告は出なくなり、（表面的には）解決。<br />
うーん。<br />
副作用がないといいんだけど。。<br />
<br />
<br />
]]>
    </description>
    <category>お仕事</category>
    <link>http://treefrog1450.blog.shinobi.jp/%E3%81%8A%E4%BB%95%E4%BA%8B/gem%20install%20%E3%81%A7%20permission%20denied</link>
    <pubDate>Wed, 26 Dec 2012 04:25:49 GMT</pubDate>
    <guid isPermaLink="false">treefrog1450.blog.shinobi.jp://entry/114</guid>
  </item>
    <item>
    <title>git tag まだまだ続く</title>
    <description>
    <![CDATA[慌てる時ー！（慌てる時ー！）<br />
リモートリポジトリにpushしたtagが間違っていたとか必要なかったとかした時ー！<br />
<br />
# git tag -d hoga &nbsp; //手元のhogaタグを削除<br />
# git push origin :refs/tags/hoga &nbsp; //リモートのhogaタグを空のタグ(:)で上書き<br />
<br />
&hellip;って削除したけどやっぱり必要だったotz<br />
<br />
<br />
]]>
    </description>
    <category>未選択</category>
    <link>http://treefrog1450.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/git%20tag%20%E3%81%BE%E3%81%A0%E3%81%BE%E3%81%A0%E7%B6%9A%E3%81%8F</link>
    <pubDate>Wed, 05 Dec 2012 02:14:01 GMT</pubDate>
    <guid isPermaLink="false">treefrog1450.blog.shinobi.jp://entry/113</guid>
  </item>
    <item>
    <title>git merge する時に --squash オプションをつける</title>
    <description>
    <![CDATA[--squashをつけた方がいい、とチーム内では言われていますが、<br />
今まではよく分かんなかったので怖くて使ってませんでした。(推奨であって強制ではなかったので)<br />
<br />
<strong>[ --squash をつけた方がよい理由 ]</strong><br />
コミットする時は、「新しいメソッドを実装」「不要なメソッドを削除」「リファクタリング」のように、内容や目的毎に分けた方が良いらしいですね？<br />
(diffが分かりやすくなったり、レビューがしやすくなったりするから？)<br />
<br />
とはいえ、レビューやテストが終わってmasterにマージする時は、「XXXメソッドの代わりにYYYメソッドを実装」とひとつにまとめた方が後で分かりやすいでしょう。<br />
<br />
<strong>[ --squash の使い方 ]</strong><br />
ということで。<br />
<br />
<font style="color:#800000;"><span style="background-color:#cccc99;">&nbsp;git merge --squash branch_name&nbsp;</span></font><br />
<br />
こうすると、マージしたいブランチの変更全てがmasterにも適用され、かつまだcommitしていない状態にできます。<br />
<div>
	&quot;git status&quot; するとこんな感じで、変更されたファイル一覧が表示されます。<br />
	<br />
	<font style="color:#800000;"><span style="background-color:#cccc99;"># On branch master &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></font></div>
<div>
	<font style="color:#800000;"><span style="background-color:#cccc99;"># Changes to be committed: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div>
<div>
	<font style="color:#800000;"><span style="background-color:#cccc99;"># &nbsp; (use &quot;git reset HEAD &lt;file&gt;...&quot; to unstage) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div>
<div>
	<font style="color:#800000;"><span style="background-color:#cccc99;"># &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></font></div>
<div>
	<font style="color:#800000;"><span style="background-color:#cccc99;">#<span class="Apple-tab-span" style="white-space:pre"><span style="background-color:#cccc99;"> </span></span>modified: &nbsp; xxx.rb &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></font></div>
<div>
	<font style="color:#800000;"><span style="background-color:#cccc99;">#<span class="Apple-tab-span" style="white-space:pre"><span style="background-color:#cccc99;"> </span></span>modified: &nbsp; yyy.rb &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></font></div>
<div>
	<font style="color:#800000;"><span style="background-color:#cccc99;"># &nbsp;... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></font></div>
<div>
	<br />
	この状態で改めて &quot;git commit&quot; しなおせば、<br />
	別ブランチでの複数のコミットを、masterでは一つにまとめてしまえるわけですね。<br />
	<br />
	<br />
	以下、まとめ。<br />
	多分こうすればいいんだと思う。<br />
	----<br />
	(開発用のブランチを作成)<br />
	git checkout -b new_branch<br />
	&darr;<br />
	(開発してはコミットの繰り返し)<br />
	git add<br />
	git commit<br />
	git add<br />
	git commit<br />
	...<br />
	&darr;<br />
	(コミットとレビューが終わったらmasterにsquashマージしてcommitし直す)<br />
	git checkout master<br />
	git merge --squash new_branch<br />
	git commit<br />
	&darr;<br />
	(リモートリポジトリにpush)<br />
	git push origin master<br />
	&nbsp;</div>
]]>
    </description>
    <category>お仕事</category>
    <link>http://treefrog1450.blog.shinobi.jp/%E3%81%8A%E4%BB%95%E4%BA%8B/git%20merge%20%E3%81%99%E3%82%8B%E6%99%82%E3%81%AB%20--squash%20%E3%82%AA%E3%83%97%E3%82%B7%E3%83%A7%E3%83%B3%E3%82%92%E3%81%A4%E3%81%91%E3%82%8B</link>
    <pubDate>Wed, 14 Nov 2012 04:41:31 GMT</pubDate>
    <guid isPermaLink="false">treefrog1450.blog.shinobi.jp://entry/112</guid>
  </item>
    <item>
    <title>みんな大好きsftp</title>
    <description>
    <![CDATA[リモートからファイルを取ってきたり、逆にローカルからファイルを送ったりってことは多いと思います。<br />
ブラウザやGUI経由(自分の場合はjenkinsやFinder)だと色んな理由で遅い時がありますよね。。<br />
それを解決する方法を知っていればベストなんでしょうが、残念ながら知識がないのでTerminalで取ってきちゃえーとなります。<br />
<br />
そんな時に(どんな時だ)使うのがsftpです。本当かなぁ。。<br />
scpでもいいんですが、pathが長くて思い出せなかったりファイル名が長くて思い出せなかったりってなるので、自分はpwdやらcdやらlsできるsftpの方が使いやすいです。<br />
<br />
&lt;参考にしたページ&gt;&nbsp;<a href="http://cns-guide.sfc.keio.ac.jp/2004/2/6/3.html">http://cns-guide.sfc.keio.ac.jp/2004/2/6/3.html</a><br />
<br />
基本はsshと同じで、<br />
<br />
<font style="color:#800000;"><span style="background-color:#cccc99;">&nbsp;sftp user-name@server-address&nbsp;</span></font><br />
<br />
.ssh/config に設定されたサーバなら<br />
<br />
<span style="color: rgb(128, 0, 0); background-color: rgb(204, 204, 153); ">&nbsp;sftp host-name&nbsp;</span><br />
<br />
で入れます。入った後は<br />
<br />
リモート側の操作はsshの時と同様に cd,pwd,ls などを使い、<br />
ローカル側の操作は&quot;l&quot;をつけて lcd,lpwd,lls ...のように行います。<br />
<br />
肝心のファイル転送は、<br />
リモートからローカルへ：<br />
<span style="color: rgb(128, 0, 0); background-color: rgb(204, 204, 153); ">&nbsp;get remote/file/name local/path&nbsp;</span><br />
<br />
<span style="color: rgb(128, 0, 0); background-color: rgb(204, 204, 153); ">&nbsp;get hoge.txt . </span>... hoge.txtをローカルのカレントディレクトリへコピー<br />
<br />
ローカルからリモートへ：<br />
<span style="color: rgb(128, 0, 0); background-color: rgb(204, 204, 153); ">&nbsp;put local/file/name remote/path</span><br />
<br />
<span style="color: rgb(128, 0, 0); background-color: rgb(204, 204, 153); ">&nbsp;put foo.txt .&nbsp;</span>&nbsp;...foo.txtをリモートのカレントディレクトリへコピー<br />
<br />
ディレクトリごと転送したい時は、&quot;mget&quot;/&quot;mput&quot;という複数ファイル用のコマンドがあるらしいですが、<br />
&quot;-r&quot;オプションを使って<br />
<span style="color: rgb(128, 0, 0); background-color: rgb(204, 204, 153); ">&nbsp;get -r remote/directory/name local/path&nbsp;</span><br />
<br />
<span style="color: rgb(128, 0, 0); background-color: rgb(204, 204, 153); ">&nbsp;get -r remote/directory/name/*.txt local/path</span><br />
<br />
とかでも十分かなと思いました。<br />
<br />
タブキーでの入力補完とヒストリー機能がないので、そこはちょっと不便に感じています。<br />
なんとかする方法があるのかしらん？<br />
<br />
]]>
    </description>
    <category>お仕事</category>
    <link>http://treefrog1450.blog.shinobi.jp/%E3%81%8A%E4%BB%95%E4%BA%8B/%E3%81%BF%E3%82%93%E3%81%AA%E5%A4%A7%E5%A5%BD%E3%81%8Dsftp</link>
    <pubDate>Tue, 23 Oct 2012 05:11:55 GMT</pubDate>
    <guid isPermaLink="false">treefrog1450.blog.shinobi.jp://entry/111</guid>
  </item>
    <item>
    <title>新世界よりを買うか躊躇するなど</title>
    <description>
    <![CDATA[本屋さんで見かける&rarr;アニメの制服が可愛い&rarr;まさかの上中下巻&rarr;会社の同期にアニメの様子を訊く(微妙)&rarr;別の同期が買う&rarr;感想を聞く(中々)&rarr;黒い家(黒い)の著者と判明&rarr;鍵のかかった部屋(大野君)の著者と判明[今ココ]<br />
<br />
黒い家とかマジ黒かったのでまたあんな怖かったらやだなーとびびってるんですが、<br />
しかし借りられそう(金銭的ハードルが無い)ので読むかも。<br />
問題はその同期と会うチャンスがないこと。<br />
<br />
<br />
さて、今年ももう終盤ですね。。。<br />
<br />
去年の読書リストは74。<br />
今年の読書リストは47(10/22付)。<br />
<br />
ファントム・ブレイブやらProject Divaやらゲームばっかりやってたので少ないですね。<br />
とりあえず、目標の年50はいけそうなので、まぁよしとする。<br />
<br />
境ホラは年3冊読んでもリスト1で、物語シリーズは1冊/1リストなあたりちょっと変な気もするが、そこらへんがこだわり。<br />
段々場所をとるラノベを買わなくなり、周囲の影響を受けてSFに傾倒しつつあります。]]>
    </description>
    <category>日常</category>
    <link>http://treefrog1450.blog.shinobi.jp/%E6%97%A5%E5%B8%B8/%E6%96%B0%E4%B8%96%E7%95%8C%E3%82%88%E3%82%8A%E3%82%92%E8%B2%B7%E3%81%86%E3%81%8B%E8%BA%8A%E8%BA%87%E3%81%99%E3%82%8B%E3%81%AA%E3%81%A9</link>
    <pubDate>Mon, 22 Oct 2012 12:57:56 GMT</pubDate>
    <guid isPermaLink="false">treefrog1450.blog.shinobi.jp://entry/110</guid>
  </item>
    <item>
    <title>git tag はじめの一歩</title>
    <description>
    <![CDATA[便利なので付けすぎて氾濫し過ぎな気もするタグ。<br />
短いと意味分かんないし、あんまり長い名前も使いづらいし。。<br />
<br />
一覧表示：<font style="color:#800000;"><span style="background-color:#cccc99;">&nbsp;git tag&nbsp;</span></font><br />
<br />
タグ付け：<span style="color: rgb(128, 0, 0); background-color: rgb(204, 204, 153); ">&nbsp;git tag hoge&nbsp;</span>&nbsp;... 今いるところ(HEAD)に対してタグを打てる。<br />
<br />
タグ付け(2)：<span style="color: rgb(128, 0, 0); background-color: rgb(204, 204, 153); ">&nbsp;git tag hoge commit&nbsp;</span>&nbsp;...commitを指定してタグを打てる。<br />
<br />
コメント付きタグ付け：<span style="color: rgb(128, 0, 0); background-color: rgb(204, 204, 153); ">&nbsp;git tag hoge -m &quot;hoge-hoge&quot;&nbsp;</span><br />
<br />
タグ削除：<span style="color: rgb(128, 0, 0); background-color: rgb(204, 204, 153); ">&nbsp;git tag -d hoge&nbsp;</span><br />
<br />
<br />
タグだけpull：<span style="color: rgb(128, 0, 0); background-color: rgb(204, 204, 153); ">&nbsp;git fetch origin -t&nbsp;</span>&nbsp;もしくは&nbsp;<span style="color: rgb(128, 0, 0); background-color: rgb(204, 204, 153); ">git fetch origin --tags </span><br />
&nbsp; &nbsp; (git pull --tags でできるかと思ったけど、できないみたい？)<br />
<br />
タグだけpush：<span style="color: rgb(128, 0, 0); background-color: rgb(204, 204, 153); ">&nbsp;git push --tags&nbsp;</span><br />
<br />
<br />
タグ打ってpushしようと思ったら、「&quot;zzz&quot;というtagはrejectだよ！どこからも繋がってないよ！」的なメッセージが出たことがあって、そのときはそのタグを一回削除してからfetchして取り直してからpushしたらできた。<br />
<br />
tagsとtagとがあって、ちょっとややこしいですの。<br />
tagだけpushするときはbranchとかremoteとか気にしなくてよくて気楽―。<br />
<br />
最後に。<br />
タグが多すぎると目的のタグが見つけられなくて、いつも&quot; | grep xxx&quot;とかやってたのですが、<br />
<span style="color: rgb(128, 0, 0); background-color: rgb(204, 204, 153); ">&nbsp;git tag -l &quot;xxx*&quot;&nbsp;</span><br />
で探せるとな！何これ超便利。<br />
<br />
]]>
    </description>
    <category>お仕事</category>
    <link>http://treefrog1450.blog.shinobi.jp/%E3%81%8A%E4%BB%95%E4%BA%8B/git%20tag%20%E3%81%AF%E3%81%98%E3%82%81%E3%81%AE%E4%B8%80%E6%AD%A9</link>
    <pubDate>Tue, 16 Oct 2012 00:46:47 GMT</pubDate>
    <guid isPermaLink="false">treefrog1450.blog.shinobi.jp://entry/109</guid>
  </item>

    </channel>
</rss>