Every time I start my computer, I gonna open bash and pull all my repositories.

My folder structure looks like this:

So how can I pull all my repos with only one command?

First, create a new file: pull.sh under the folder WorkSpace

Change the content to:

find . -maxdepth 2 -mindepth 2 -type d \( ! -name . \) -exec bash -c "cd '{}' && pwd && git pull" \;

And execute the following command to allow running it:

chmod +x ./pull.sh

Every time I start my computer, I can simply run:

./pull.sh

And all my repositories are up to date.