Skip to content

Instantly share code, notes, and snippets.

View aapatni's full-sized avatar

Adam Patni aapatni

View GitHub Profile
@titenkov
titenkov / vim-visual-blocks.md
Last active October 24, 2024 15:12
Use Vim visual blocks during interactive git rebase

Sometimes, when rebasing interactively with git, we need to squash a sequence of commits in a branch.

For example, we need to transform this:

pick 0253dc894f bumped
pick 5a1e86933c remove dependency
pick bffoffb395 memberships rpc resource
pick 222fabf5e0 rpc membership service
pick 726a2f9a10 remove crypto logic