按语言、编辑器、系统组合生成 .gitignore
# JavaScript / Node.js logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json pids *.pid *.seed *.pid.lock lib-cov coverage *.lcov .nyc_output .grunt bower_components .lock-wscript build/Release node_modules/ jspm_packages/ web_modules/ *.tsbuildinfo .npm .eslintcache .stylelintcache .node_repl_history *.tgz .yarn-integrity .env .env.* !.env.example .cache .parcel-cache .next out .nuxt dist .output .nitro/ .cache/ .vuepress/dist .temp .svelte-kit/ **/.vitepress/dist **/.vitepress/cache .docusaurus .serverless/ .fusebox/ .dynamodb/ .firebase/ .tern-port .vscode-test .pnpm-store .pnp.* .yarn/* !.yarn/patches !.yarn/plugins !.yarn/releases !.yarn/sdks !.yarn/versions vite.config.js.timestamp-* vite.config.ts.timestamp-* .vite/ .astro/ .turbo # Next.js /node_modules /.pnp /coverage /.next/ /out/ /build .DS_Store *.pem .pnpm-debug.log* .env*.local .vercel next-env.d.ts .swc # VS Code .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json !.vscode/*.code-snippets !*.code-workspace *.vsix # macOS .localized __MACOSX/ .AppleDouble .LSOverride Icon[ ] ._* .DocumentRevisions-V100 .fseventsd .Spotlight-V100 .TemporaryItems .Trashes .VolumeIcon.icns .com.apple.timemachine.donotpresent .com.apple.timemachine.supported .PKInstallSandboxManager .PKInstallSandboxManager-SystemSoftware .hotfiles.btree .vol .file .disk_label* lost+found .HFS+ Private Directory Data[ ] .AppleDB .AppleDesktop Network Trash Folder Temporary Items .apdisk Desktop DB Desktop DF TheFindByContentFolder TheVolumeSettingsFolder .FBCIndex .FBCSemaphoreFile .FBCLockFolder .quota.group .quota.user .quota.ops.group .quota.ops.user Backups.backupdb .MobileBackups .MobileBackups.trash MobileBackups.trash tmbootpicker.efi # Windows Thumbs.db Thumbs.db:encryptable ehthumbs.db ehthumbs_vista.db *.stackdump [Dd]esktop.ini $RECYCLE.BIN/ *.cab *.msi *.msix *.msm *.msp *.lnk # 环境变量 .env* !.env.sample !.env.template # 日志 logs/
规则取自 github/gitignore 官方模板(CC0),选中后自动拼接去重,`!` 例外和补充规则都会保留。冷门模板收在「其它模板」里。