Git reset, as talked about in several answers right before, is undoubtedly the best and most basic way to obtain what you would like. I utilize it in the following workflow: I discovered Felix Rieseberg's Answer to generally be the most effective. This is my slightly shorter transcription of his https://luigi-oil-series-466343.vidublog.com/38298412/everything-about-luigi-oil-series-4