Skip to content

Instantly share code, notes, and snippets.

Created December 15, 2021 20:32
What would you like to do?
Git LFS command generator for my blog
$i = 2001;
$types = ['jpg', 'png', 'gif'];
$years = range(2001, 2021);
foreach ($years as $year) {
foreach ($types as $type) {
echo "git lfs track blog/wp-content/uploads/{$year}/**/*.{$type};\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment