How does this command alter the currently checked-out branch? git reset --soft HEAD^
git reset --soft HEAD^
It sets HEAD to previous commit and leaves changes from the undone commit in the stage/index.
It keeps the HEAD at the current commit, but clears all previous commits.
It resets the working branch to the first commit.
It deletes all previous commits and resets the repository history back to its initial state.