More Git instructions

Saturday, May 31, 2025 at 12:54:47

** Because I’ll forget!

Basics:

  • git add .
  • git commit
  • git push

Check for picture differences:

ls | perl -e 'while(<>){chomp;
next if (-s $_ == -s "../../original_images/$_"); 
print "$_ has sizes: TEST:".(-s $_)."  /  ORIG:".(-s "../../original_images/$_")."n";
}'

Update test area to prod area:

ls | perl -e 'while(<>){chomp;
next if (-e "../../otherpath/images/$_" && -s $_ >= -s "../../otherpath/images/$_"); 
print "$_ has sizes: TEST:".(-s $_)."  /  MAIN:".(-s "../../otherpath/images/$_")."n"; use File::Copy; copy($_, "../../otherpath/images/$_"); 
}'

Add comment

Fill out the form below to add your own comments