Remove unwanted files of the git record.