added a comment on checkout, if filename is specified it can be used to reset a file which has been git added