Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
panic
9y ago
0 comments
Share
If it hasn't been committed, it won't be in the reflog. Working copies and stashed changes are especially vulnerable to being overwritten by accident. It would be great if git had a way to undo these operations too.
0 comments
default
newest
oldest
OJFord
9y ago
You could alias reset to instead commit all and then reset.
panic
OP
9y ago
But what if I'm just trying to unstage something? I don't think shell aliases can solve this in the general case.
j
/
k
navigate · click thread line to collapse