Help us understand the problem. What is going on with this article?

tigとGitHubを連携させる幾つかのカスタムキーバインド

More than 5 years have passed since last update.

GitHubにホストされたプロジェクトの開発時には hub を利用すると便利です。
このhubをtigから扱えるようにカスタムキーバインドを設定しておくと、
tigとGitHubを連携させていくつかの操作が便利になりますので紹介します。

# リポジトリのGitHubを表示
bind generic ^ !@hub browse

# issuesを表示
bind generic - !@hub browse -- issues

# 選択したcommitをGitHubで表示
bind generic ~ !@hub browse -- commit/%(commit)

# 選択したcommitのci-statusを確認
bind generic = !hub ci-status %(commit)

# 選択したbranchをcompareに送る
bind branch [ !@hub compare %(branch)

# 現在のbranchからpull-requestを作成
bind main { !hub pull-request

GitHub関連のコマンドは普段バインドすることが少ない記号を選んでいます。

参考にしたページ:

yoshikazusawa
PerlやJavaScriptを業務で扱っています。
mixi
全ての人に心地よいつながりを
http://mixi.co.jp
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした