Created
June 29, 2023 17:38
-
-
Save Abir-Tx/20db87d2eeadb98f6a2f20967b770b3a to your computer and use it in GitHub Desktop.
The script is designed to automate the process of updating multiple Git repositories located within different directories. It utilizes PowerShell commands and Git commands to achieve this functionality
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
# Writen By: Mushfiqur Rahman Abir | |
# Year: 2023 | |
Get-ChildItem -Directory | ForEach-Object { | |
Write-Host "`n■ Getting latest for $($_.FullName) ↓" -ForegroundColor Green | |
git -C $_.FullName pull --all --recurse-submodules --verbose | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment