More than 5 years have passed since last update.
git rebase -i って面倒ですよね。git rebase -i HEAD~5 など、戻るコミット数を明示する必要があります。tig を使って git rebase -i をグラフィカルにできるようにしましょう。
tig については tigでgitをもっと便利に! addやcommitも がわかりやすいです。
git rebase -i できるように ~/.tigrc に設定を追加
~/.tigrc
bind main R !git rebase -i %(commit)
bind diff R !git rebase -i %(commit)
Rはキーバインドです。自分の好きなキーを設定できます。
tig 上で選択したコミットから git rebase -i してみる
feat: 修正というコミットを商品データの取得というコミットに fixup する例 |
|---|
| 👁 record6.gif |
参考
もっと詳しい tig の使い方。
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
