what is soft reset and hard reset in git code example Example: git soft reset head git reset --soft HEAD^ //resets head by 1