Skip to content

Instantly share code, notes, and snippets.

@chrisryana
Last active January 29, 2025 19:45
Show Gist options
  • Save chrisryana/2a9880288a706515f2962d378edcb1a3 to your computer and use it in GitHub Desktop.
Save chrisryana/2a9880288a706515f2962d378edcb1a3 to your computer and use it in GitHub Desktop.
Посчитать количество строк в проекте, исключив некоторые файлы

Зайти в папку с проектом в терминале и выполнить команду:

git ls-files --exclude-standard -- ':!:**/*.test.ts.snap' ':!:**/*.test.ts' ':!:**/*.test.tsx' ':!:**/*.test.tsx.snap' ':!:.idea' ':!:**/*.eslintrc' ':!:package-lock.json' ':!:**/*.svg' ':!**/*.png' ':!**/*.jpg'  | xargs wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment