Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
panic
9y ago
0 comments
Save
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
2 comments · 1 top-level
top
newest
oldest
OJFord
9y ago
· 1 in thread
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