JohnAbeJames.com

Git branch - see recent files changed

  • 11/12/2024
  • When reviewing code I might checkout a branch and then return to what I was working on. But what was I working on? Sometimes I can't remember the files I've just been messing with, so I've started using this command:

    git --no-pager diff --name-only HEAD~1 HEAD

    It lists the edited files between the current head and the last commit. I alias it to git~1