#038 git reset HEAD^ --soft

If you need to undo a commit but maintain the corresponding alterations alterations use the command git reset HEAD^ --soft

Command Description
reset Command that resets to previous state
HEAD Pointer that stores the current state
^ The circumflex is a shortcut for the last commit
--soft Flag that store changes in staging