Git would not undo modifications

Git would not  checkout files correctly