save all changed files and remove deleted ones