Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Git trouble shooting] script for tracking files according to file size #537

Open
Brilator opened this issue Dec 10, 2024 · 0 comments
Open

Comments

@Brilator
Copy link
Member

Not sure if this is still relevant, but I have multiple scripts for tracking files according to my needs. For size it is this one:

# track all files in the ARC which are above 10 MB in size
find . -path './.git' -prune -o -type f -size +10M -print | while read -r file; do
  git lfs track "$file"
done

Maybe this or something like this could be helpful? I also have a script to track everything in runs based on file endings (because I don't want my yaml files to be tracked)

Originally posted by @Hannah-Doerpholz in nfdi4plants/.github#5 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant