Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
neggles
· 4y ago · 0 comments
Uh, `git reset --hard` doesn't just unstage, it unstages and rolls back all tracked files to `HEAD`... If you just want to unstage, that's what `git reset --soft` is for...
Comments
[–]
tempxyz
4y ago
or the newer 'git restore --stage'