修正脚本:修复 PowerShell 和批处理脚本中的中文乱码问题

This commit is contained in:
2026-01-27 15:56:16 +08:00
parent fa0be96004
commit 35f36c3f97

View File

@@ -30,8 +30,8 @@ git pull origin master
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
# 检查本地和远端是否一致
$Local = git rev-parse @
$Remote = git rev-parse @{u}
$Local = git rev-parse "@"
$Remote = git rev-parse "@{u}"
if ($Local -ne $Remote) {
Write-Host "Error: Local branch is not in sync with remote. Please push your changes first." -ForegroundColor Red