Git reset, as pointed out in several answers in advance of, is undoubtedly the most beneficial and easiest way to accomplish what you want. I utilize it in the subsequent workflow: Is there any strategy or mystery to keep switches flat (not yaw'd) when pushing them in then screwing them https://mylessxabb.tinyblogging.com/details-fiction-and-luigi-oil-series-4-83500917