66
66

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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

66
66
0

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
66

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?