# 强制用本地内容覆盖远程仓库
Set-Location -Path $PSScriptRoot # 切换到脚本所在目录
git add -A
git commit -m “overwrite: $(Get-Date -Format ‘yyyy-MM-dd HH:mm:ss’)” 2>$null
git push origin HEAD –force
# 强制用本地内容覆盖远程仓库
Set-Location -Path $PSScriptRoot # 切换到脚本所在目录
git add -A
git commit -m “overwrite: $(Get-Date -Format ‘yyyy-MM-dd HH:mm:ss’)” 2>$null
git push origin HEAD –force
各类网站开发
之前