LoginSignup
66

More than 5 years have passed since last update.

tigで見ているコミットをgithubで開く

Last updated at Posted at 2013-06-21
~/.tigrc
bind main G !@hub browse -- commit/%(commit)
bind diff G !@hub browse -- commit/%(commit)

上を~/.tigrcに書いておけば,tig起動中にGを押したとき,選択されているコミットに対応したgithubのコミットページをブラウザで開いてくれる.hubコマンドについてはGitHubユーザーのためのhubコマンド - Qiitaの記事をどうぞ.

デフォルトではGgit gcに割り当てられていて意味がわからない(たまに間違えて押してしまう)ので潰しておく.
!@hub@は出力を捨てる(つまりtigの再描画を避ける)意味がある.

参考

tig/tigrc.5.txt at master · jonas/tig

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
66