How to git pull for multiple repos on windows?

后端 未结 4 1098
遇见更好的自我
遇见更好的自我 2020-12-31 08:34

So I have a lot of repos, and sometimes I forget if some are behind on their pulls, so I was wondering there was a way to git pull for each repo in one .bat script. I saw so

4条回答
  •  暖寄归人
    2020-12-31 09:37

    I really liked @eikooc 's answer - and wanted it to work - but it wouldn't work for me on Windows 10.

    Here is my variation:

    for /f %%f in ('dir /ad /b C:\Documents\GitRepos\') do cd /d C:\Documents\GitRepos\%%f & call git pull & cd ..
    

提交回复
热议问题