I want to write a fast script that checks if a remote repo has changes compared to the local one, and then pull all the changes, for all the branches, if it does.
Is there a way to do this without actually pulling all the changes, first?
Everything I've seen around git remote update
and such actually downoads stuff, etc. and it's slow for many repos.
Think of this as a sort of dry-run: run this script often for many repos and run another script to actually update the local repos based on the report of the first script.