【git】git-show で特定リビジョンでのファイル内容を表示する

よく忘れちゃうのでメモ。
指定したリビジョン時点でのファイル内容を表示させるには、git show を使います。

$ git show リビジョン:ファイルパス

続きを読む

Posted at 2010/7/28 4pm | no comments;

Filed Under: Programming | Tagged: , , ,

【git】git diff で長い行を折り返す設定

GIT_PAGER 環境変数に less -R を設定してあげると、長い行が折り返して表示されるようになります。

GIT_PAGER=’less -r’ git diff

面倒なので、自分は .bashrc で設定し [...]

続きを読む

Posted at 2010/4/8 11am | no comments;

Filed Under: Programming | Tagged: , , , ,