Y
Hacker News
new
|
ask
|
show
|
jobs
by
xelxebar
3 days ago
Better yet, git reset ORIG_HEAD or whatever is usually sufficient[0]. The reflog is the general solution, but git's magic references do provide quite a few niceties.
https://www.man7.org/linux/man-pages/man7/gitrevisions.7.htm...