LoginSignup
1
2

More than 5 years have passed since last update.

tig操作 超簡易版

Last updated at Posted at 2018-04-06

tigって?

Gitのコミット操作(ステージ/アンステージ)が素早く行えるようになる。
diffの確認がしやすくなる。
というコンソール上のgitブラウザらしい。

インストールはhomebrewから簡単にできる

操作

基本の上下移動は方向キー↑↓でもできる
操作に困ったらとりあえずq連打でtig操作を終了できる

起動

#起動(gitプロジェクト内で)
tig
#ステータスビュー表示
s

ステータスビュー

#ステージ操作(↑↓で選択して)
u
#diffビュー表示(ファイル選択した状態で)
Enter
#1つ前の画面に戻る(連打でtig終了)
q

#コミットコメント入力(git commit と同等)
shift+c

diffビュー

#カーソル移動
j
k
#ページ単位で上下移動
ctrl-u
ctrl-d

#ハンク(変更点のかたまり)単位でステージ/アンステージ
u
#行単位でステージ/アンステージ
1
#ファイル選択(左側のビュー)を上下移動
shift-j
shift-k
#diffビューを閉じる
q

参考

https://qiita.com/YusukeHosonuma/items/d81397ab70a8c26a2902
https://qiita.com/suino/items/b0dae7e00bd7165f79ea

1
2
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
1
2