Skip to content

Instantly share code, notes, and snippets.

@pgaijin66
Created January 6, 2021 06:44
Show Gist options
  • Save pgaijin66/554c41d5370a36cf55a244125196d1ca to your computer and use it in GitHub Desktop.
Save pgaijin66/554c41d5370a36cf55a244125196d1ca to your computer and use it in GitHub Desktop.
git lfs recursively tracking files and folders
find . -type f | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u | awk '{print $1" filter=lfs diff=lfs merge=lfs -text"}' | sed 's/^/*./'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment