4 ms·
Is `git reset --hard` not undoable with `git reflog` and another `git reset --hard`?
by bqmjjx0kac 5y ago
Is `git reset --hard` not undoable with `git reflog` and another `git reset --hard`?
- jlokier 5y agoNo, it wipes all local changes to tracked files in your worktree that haven't been committed yet.
- nerdponx 5y agoI really wish it would warn you with a y/n prompt before doing this. Same with `git checkout` when overwriting unsaved files. You should need a `--force` option to bypass the prompt. Or it could simply refuse to make the change without `--force`.