Created
March 5, 2020 15:42
-
-
Save nh43de/f68bbb147413c9280c1ed82b84c9a0ed to your computer and use it in GitHub Desktop.
Update all local git repos in a directory using Powershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem -Directory | ForEach-Object { | |
echo $_.name | |
cd $_ | |
git fetch --all | |
git pull | |
cd ../ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment