Git reset, as stated in several answers ahead of, is definitely the very best and most straightforward way to attain what you want. I use it in the subsequent workflow: I found Felix Rieseberg's Remedy to get the most effective. This can be my marginally shorter transcription of his guidance: https://jeffreyshuen.weblogco.com/39822608/new-step-by-step-map-for-arcadia-extracts