Delete unnecessary files and modify .gitignore.