Make sure all files are original or solution versions, and possibly also remove last_saved versions. This is typically used to prepare the repository for an assignment, or to switch from originals to solution to verify the tests.
prepare_files(type = "original", remove_last_saved = FALSE, error = TRUE)
NULL