resetting to prior git commit by copying an replacing certain files