This is the command I use for this kind of things, very useful
repo forall -vc "git reset --hard"
What everything mean here ?
the repo forall will execute for all repos.
the –v is verbose, so it will print the output of the command
the -c "COMMAND TO EXECUTE" is the actual command you want