10-days-of-git-and-github icon indicating copy to clipboard operation
10-days-of-git-and-github copied to clipboard

git reset

Open fahdrahali opened this issue 4 years ago • 1 comments
trafficstars

this command didn't work for me $ git reset HEAD filename but that did work $ git reset filename

fahdrahali avatar Feb 02 '21 17:02 fahdrahali

If you want to checkout a particular version of a particular file, the command is

git checkout -f «committish» «path»

ldo avatar Jan 06 '23 20:01 ldo