Not sure if it's because I'm on Git for Windows, but a couple times above you list commands such as:
git foreach submodule git status
When I run that my shell says:
git: 'foreach' is not a git command.
I just had to swap foreach and submodule to make it work.
foreach
submodule
So this works:
git submodule foreach git status
You are right, thank you for pointing this out!
I miss spelled the command. git submodule foreach git status is the actual command. I'll update the post.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Not sure if it's because I'm on Git for Windows, but a couple times above you list commands such as:
git foreach submodule git status
When I run that my shell says:
git: 'foreach' is not a git command.
I just had to swap
foreach
andsubmodule
to make it work.So this works:
git submodule foreach git status
You are right, thank you for pointing this out!
I miss spelled the command.
git submodule foreach git status
is the actual command. I'll update the post.