cheatsheet/tig

August 24, 2021

普段の作業

s で status に移動

[ Changes not staged for commit: ]にあるファイルをエンターで選択 反映したいコミットの上で u で選択。あるいは 1 で 1 行だけ選択、

q を押して status に戻り、 C (shift + c, 大文字) でコミットする

概要

キー ビュー名 説明
m main デフォルトのビュー。いわゆる git tree
s status git status
r refs branch, tag 一覧
l log git log
t tree ディレクトリツリー
g grep git grep
b blame git blame
h help tig のキーバインド一覧

参考

超絶便利な Git クライアントの tig のすすめ 動画で使い方イメージが分かりやすい。

fugitive.vim と tig による git 生活 vim との連携プラグインの説明があって分かりやすい。


Profile picture

Written by tin-machine 技術関連のメモ Twitter