Vizion-Trading-EA/Shared Projects/VizionAI-Trading/check-all-git.ps1
2026-02-19 23:19:25 -06:00

26 lines
971 B
PowerShell

$base = "C:\Users\sahrk\AppData\Roaming\MetaQuotes\Terminal\FB9A56D617EDDDFE29EE54EBEFFE96C1\MQL5\Shared Projects"
$paths = @(
$base,
"$base\VizionAI-Trading",
"$base\VizionAI-Trading\VizionAI-Trading-Repo",
"$base\VizionAI-Trading\VizionAI-Trading-Repo\VizionAI-EA"
)
Write-Host "=== .git presence check ===" -ForegroundColor Cyan
foreach ($p in $paths) {
$short = $p.Replace($base, "Shared Projects")
$hasGit = Test-Path "$p\.git"
if ($hasGit) {
Write-Host "[GIT] $short" -ForegroundColor Yellow
$remote = git -C $p remote -v 2>&1
Write-Host " remote: $($remote | Select-Object -First 1)"
} else {
Write-Host "[ ] $short" -ForegroundColor Gray
}
}
Write-Host ""
Write-Host "=== All .git folders under Shared Projects ===" -ForegroundColor Cyan
Get-ChildItem $base -Recurse -Force -Filter ".git" -Directory -ErrorAction SilentlyContinue |
ForEach-Object { Write-Host " $($_.FullName)" }