Created
November 20, 2019 08:06
-
-
Save Bak-Jin-Hyeong/fd43a38ed1aa7cc6bcff011946e7bdf1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$invocation = (Get-Variable MyInvocation).Value | |
$invocationDir = Split-Path $invocation.MyCommand.Path | |
Get-ChildItem $invocationDir | ForEach-Object { | |
$p = (Join-Path -Path $_.FullName -ChildPath '.git') | |
if (Test-Path -Path $p) { | |
Write-Host "git --git-dir="${p}" fetch --prune --all" | |
git --git-dir="${p}" fetch --prune --all | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment