Skip to content

Instantly share code, notes, and snippets.

@zimathon
Created February 27, 2015 04:18
Show Gist options
  • Save zimathon/9ba7f2460041621b300e to your computer and use it in GitHub Desktop.
Save zimathon/9ba7f2460041621b300e to your computer and use it in GitHub Desktop.
git add -p コマンド一覧 ref: http://qiita.com/zimathon/items/b1f120d24b52ef27e60b
y - このハンクをステージングする
n - スキップする
q - 終了する
a - 以降のハンクをすべてステージングする
d - 以降のハンクをすべてスキップする
g - 指定したハンクへ移動
/ - 正規表現によるハンクの検索
j - 未確定な前のハンクへ移動する
J - 前のハンクへ移動する
k - 未確定な次のハンクへ移動する
K - ハンクへ移動する
s - ハンクを分割する
e - 手動で現在のハンクを修正する
? - ヘルプを表示する
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment