6 ms·
No, it wipes all local changes to tracked files in your worktree that haven't been committed yet.
by jlokier 5y ago
No, 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`.