Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
michaelmior
3y ago
0 comments
Save
Share
git reset HEAD@{1} should do the trick to "uncommit" and keep uncommitted changes in the absence of conflicts. (I may be missing some edge cases.) It does however unstage changes.
0 comments
2 comments · 2 top-level
top
newest
oldest
acchow
3y ago
Right, if you grok the git model then this makes sense. But if you just want to use a tool without learning how it manages state, git is a pain.
galaxyLogic
3y ago
Right and it is not obvious: git reset HEAD@{1} .
j
/
k
navigate · click thread line to collapse