#author("2020-10-21T10:55:25+00:00","","")
#author("2024-01-22T00:35:43+09:00","","")
#topicpath

///////////////////////////////////////////////////////////////////////////////
* 目次 [#x963593f]
#contents();

///////////////////////////////////////////////////////////////////////////////
* tig [#kbdfa0b1]
- ncurses を用いたコンソール向け git クライアント。
- commit する際、対象をファイル単位ではなく、ファイルの行単位で指定することも可能。
- commit する際、対象をファイル単位ではなく、ファイルの行単位で指定することも可能(尤もこれは git 自体が持っている機能であり、emacs 上の magit でも同じことが出来る)。


///////////////////////////////////////////////////////////////////////////////
* コマンド [#z591fb3a]
|~category    |~binding |~command    |~description |~remark |
|~git command |s, S     |git status  |status view へ遷移 | |
|~|            r         |git branch |refs view へ遷移 | |
|~|            l         |git log    |log view へ遷移 | |
|~|            g        |git grep    |   | |
|~|            b        |git blame   |blame view へ遷移   | |
|~cursor      |j        |cursor DOWN | | |
|~|           k         |cursoe UP   | | |
|~other       |/ <word> |search      |文字列を検索         | |
|~|            q        |exit screen |現在の画面を抜ける   | |
|~|            Q        |exit tig    |tig を終了する       | |
|~|            m        |main view   |main view を表示する | |
|~|            t        |tree        |tree view へ遷移。ディレクトリツリーを表示する | |
|~|            h        |show help   |help を表示する      | |

** status view [#hfef9097]
|~binding |~command    |~description          |~remark |
|u        |git add     |ファイルを stage する  | stage されてないファイルにカーソルがある時 |
|u        |git reset   |stage を取り消す       |stage されたファイルにカーソルがある時 |
|c        |git commit  |commit sする          | |
| | | | |
| | | | |


//=============================================================================
** diff [#idd2f07a]

///////////////////////////////////////////////////////////////////////////////
* link [#wfa05056]
- [[tigでgitをもっと便利に! addやcommitも - Qiita>https://qiita.com/suino/items/b0dae7e00bd7165f79ea]]
- [[tigの使い方とオプションをまとめた - iberianpigsty>https://iberianpig.github.io/posts/2016-04-22-tig%E3%82%92%E4%BD%BF%E3%81%86/]]

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS