Skip to content

Instantly share code, notes, and snippets.

@Abir-Tx
Created June 29, 2023 17:38
Show Gist options
  • Save Abir-Tx/20db87d2eeadb98f6a2f20967b770b3a to your computer and use it in GitHub Desktop.
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
# 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