I'm trying to find a simple way to do a git push
from all repositories in a folder simultaneously. The reason is that I have a /var/git with bare repos which I push to over SSH, and on another machine a ~/git with normal repos. Here's what I want to have happen:
- On my laptop:
duncan@laptop:~/git/someproject> git push
[url is server:/var/git/someproject] - On my laptop:
duncan@laptop:~/git/anotherthing> git push
[url is server:/var/git/anotherthing] - On my server:
duncan@server:/var/git> [...push all repos in this folder...]
And that should push all the repos in that folder to their respective remotes. Same goes for fetch in the reverse order.