Git reset one file

Public, Git

harrylevine

Created: Apr 08, 2015     Updated: Apr 08, 2015


$ git checkout HEAD -- my-file.txt

For example:

$ git checkout HEAD -- README.md

http://stackoverflow.com/questions/7147270/hard-reset-of-a-single-file