How to change git branch in multiple projects at once and pull the latest changes?

$ cd /my-projects

$ cd project1 && git checkout develop && git pull origin develop && cd ..
$ cd project2 && git checkout develop && git pull origin develop && cd ..
$ cd project3 && git checkout develop && git pull origin develop && cd ..
$ cd project4 && git checkout develop && git pull origin develop && cd ..

No alt text provided for this image