Git reset, as described in several responses ahead of, is undoubtedly the very best and most straightforward way to accomplish what you need. I use it in the following workflow: I discovered Felix Rieseberg's Remedy to get the top. This really is my a little shorter transcription of his information: https://luigioilseries483826.canariblogs.com/awful-lot-of-cough-syrup-snowcaps-no-further-a-mystery-53995856