вернуть файл в главную версию git

git checkout -- filename
Blue Boar