10-days-of-git-and-github
10-days-of-git-and-github copied to clipboard
git reset
trafficstars
this command didn't work for me $ git reset HEAD filename but that did work $ git reset filename
If you want to checkout a particular version of a particular file, the command is
git checkout -f «committish» «path»