git check when a file is deleted code example Example: git checkout all deleted files git checkout -f