Published onWednesday, August 23, 2023Git Reset a File to HEADgit restore pathTo/MyFile The above will restore MyFile on HEAD (the last commit) on the current branch.Referencehttps://stackoverflow.com/questions/7147270/hard-reset-of-a-single-file