Comment by xk3 Comment by xk3 18 hours ago 1 reply Copy Link View on Hacker News > 2. Avoid `reset --hard` at all costsSounds like you might be looking for `git reset --keep`