Show HN: Git uncommit – reset unpushed, committed changes

by below43on 2/21/2026, 3:14 AMwith 3 comments

Equivalent of "git reset --soft HEAD~1". Got sick of googling it every time with my goldfish memory.

Just a brew package at this point, but feel free to suggest alternatives.

by westurneron 2/21/2026, 4:08 AM

From "How core Git developers configure Git" https://news.ycombinator.com/item?id=43179071 :

> skwp/git-workflows-book > .gitconfig appendix: https://github.com/skwp/git-workflows-book : > "Two useful aliases: unstage and uncommit": https://github.com/skwp/git-workflows-book#two-useful-aliase... :

  [alias]
  unstage = reset HEAD              # remove files from index (tracking)
  uncommit = reset --soft HEAD^     # go back before last commit, with files in uncommitted state

by myston 2/21/2026, 3:22 AM

You can do an alias.