Git pre commit. Git restore. git commit -m пример. как работает команда git checkout -f. git reset.