Tag: Tig

cheatsheet/tig

普段の作業

s で status に移動

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

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

概要

キービュー名説明
mmainデフォルトのビュー。いわゆる git tree
sstatusu で git add。 c でコミットメッセージ
rrefsbranch, tag 一覧
lloggit log
ttreeディレクトリツリー
ggrepgit grep
bblamegit blame
hhelptig のキーバインド一覧
ddiff差分 diffを見たい

チェックアウト

r(リポジトリ一覧) -> ブランチに上下移動 -> c

Read more...