Login
You're viewing the functional.cafe public feed.
  • Oct 1, 2026, 2:26 PM

    I often find myself in need of amending a #git commit that's not the latest.

    This is how I always end up doing that: create a dummy commit (usually called "lol"), interactively rebase on an early enough commit (typically HEAD~~~~ plus/minus some tildes), then squash the dummy commit into the one I wanna amend.

    This ... works, but it doesn't seem like the best possible workflow. Surely there's a better way?

    #vcs #programming #softwaredevelopment

    Screen recording where I perform the steps described in the post: 'git commit -m lol', 'git rebase -i HEAD~~~~', then interactively squash the newest commit into an older commit
    💬 0🔄 0⭐ 0