Command

git reset --keep

Conditional reset preserving compatible local changes; refuses conflicting changes and unmerged entries.

Formal Syntax & Structure

git syntaxgit
git reset --keep REV
Git Reference