git checkout main
git pull origin main
$source = “D:\黑馬大數據學習\crawler”
$dest = Join-Path (Get-Location) “crawler”
if (-not (Test-Path $dest)) {
New-Item -ItemType Directory -Path $dest | Out-Null
}
Copy-Item -Path $source* -Destination $dest -Recurse -Force
git add crawler/
git commit -m “更新 crawler 目錄內容,覆蓋遠程中同名文件”
git push origin main