ubuntu - Git - how to push on every repository inside folder -


on local computer have every project inside workspace folder, there have git repositories cloned repositories of github, bitbucket, etc.

so example have this:

workspace\     githubrepo1\     githubrepo2\     bitbucketrepo1\     bitbucketrepo2\     ... 

there many more (of course not folder names).

i have done commits on of local repositories , want push them respective remote repositories. remote directions configured correctly , using ssh access, won't ask me password.

maybe done terminal command, don't know how. using ubuntu.

so, how make git push on every repository inside workspace.

thank you.

a simple shell construct:

for repo in ${home}/workspace/*   (cd ${repo} && git push) done 

if often, add .bashrc

pushall() { repo in .......   ........   done } 

then can run pushall whenever need to...


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -