Removing unnecessary files from history