Commit changes and delete old files