How to git pull for multiple repos on windows?

后端 未结 4 1114
遇见更好的自我
遇见更好的自我 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:39

    Here is a PowerShell version

    Get-ChildItem -Directory | foreach { Write-Host "`n■ Getting latest for $_ ↓" | git -C $_.FullName pull --all --recurse-submodules --verbose }
    

提交回复
热议问题