Git reset, as pointed out in many answers in advance of, is undoubtedly the top and most straightforward way to attain what you wish. I use it in the following workflow: I discovered Felix Rieseberg's Resolution to generally be the best. This can be my a bit shorter transcription of https://emilianogwmaq.daneblogger.com/37978244/the-fact-about-big-chief-duo-all-in-one-liquid-diamonds-that-no-one-is-suggesting