あんパン

こしあん派

2016-01-14から1日間の記事一覧

別ブランチの特定のファイルをvimで開く

$ git show branch_name:/path/to/file すると別のブランチのファイルを標準出力にだすことができる(知らなかった). $ git show branch_name:/path/to/file | vim - するとVimで開けて便利.lessとかに出すのも良さそう.branch_nameはコミットのハッシュで…