Git reset, as talked about in lots of answers in advance of, is by far the ideal and simplest way to realize what you wish. I use it in the next workflow: I discovered Felix Rieseberg's solution to become the most effective. This is certainly my somewhat shorter transcription of https://rylanjesuw.blogdemls.com/39337522/the-basic-principles-of-duo-liquid-diamonds