git reset --soft <commit>

Term side of the Card
Topic: Git Commands - Undo Changes
Unit title: git reset --soft <commit>
Categories: Command
Explanation side of the Card

Explanation: The command that moves the HEAD pointer to a previous commit while keeping changes staged. This option enables rewriting history without losing modifications.

Edit on GitHubContributions in our content repository are 🤗 welcome from everyone.Link leads to the Contributions guidelines on GitHubLink leads to the content repository on GitHub