Tuesday, 2 October 2018

git single file reset command

I currently have three modified files in my working directory. However I want one of them to be reset to the HEAD status.

git checkout HEAD -- my-file.txt
https://stackoverflow.com/questions/7147270/hard-reset-of-a-single-file

No comments:

Post a Comment