News for hackers. Stuff that matters.
Re:Git undo: We can do better by fiddlerwoaroof on Monday June 21, 2021 @12:29PM (#27580767)
There’s a really easy way to check the diff before committing on the command-line:

    git commit -v
Displays a diff at the bottom of the editor that pops up to write a commit message.
Re:Git undo: We can do better by cerved on Tuesday June 22, 2021 @03:40AM (#27589008)
you can also set

  git config commit.verbose true
to always have this behavior