Skip to content

Instantly share code, notes, and snippets.

View PasaOpasen's full-sized avatar
😛
ultimate hot computer man

Demetry Pasсal PasaOpasen

😛
ultimate hot computer man
View GitHub Profile
@PasaOpasen
PasaOpasen / precommit.sh
Last active October 1, 2023 08:33
git precommit hook which adds big staged files to LFS
#!/bin/sh
#
# moves big staged files to LFS if not already tracked
#
# the file is tracked as LFS if it is mentioned in .gitattributes
#
#
FILE_SIZE_LIMIT_MB=10