Y
Hacker News
new
|
ask
|
show
|
jobs
by
panic
3589 days ago
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.
1 comments
OJFord
3589 days ago
You could alias reset to instead commit all and then reset.
link
panic
3589 days ago
But what if I'm just trying to unstage something? I don't think shell aliases can solve this in the general case.
link