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