Git LFS command generator for my blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$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