save all changed files & remove deleted ones