I want to revert my local changes on a specific file. In SVN I usually revert my existing file by typing:
[vader@deathstar ~]$ svn revert myfile.txt
So I tried to revert a file in git, but the documentation says me something about reverting changes on a specific commit. See also on https://git-scm.com/docs/git-revert
So I found out that the supposed command revert from svn is not the same in git.
Solution
To revert a local change on an specific file you need to checkout the file again by typing to following command in your console:
[vader@deathstar ~]$ git checkout myfile.txt
If you want to revert all uncommited local changes in the current folder you need to type to following command:
[vader@deathstar ~]$ git reset --hard