diff --git a/update.ps1 b/update.ps1 index 60a954d..790099d 100644 --- a/update.ps1 +++ b/update.ps1 @@ -56,6 +56,11 @@ if (-not $Silent) { $commits | ForEach-Object { Write-Host " $_" -ForegroundColor DarkGray } } +# Discard local changes (productia nu trebuie editata manual) +Log "==> Discard local changes..." "Cyan" +git checkout -- . 2>&1 | Out-Null +git clean -fd 2>&1 | Out-Null + # Git pull Log "==> Git pull..." "Cyan" $pullOutput = & git -c credential.helper="" pull $fetchUrl 2>&1