diff --git a/deploy.sh b/deploy.sh index 89ba255..5ee338b 100755 --- a/deploy.sh +++ b/deploy.sh @@ -31,7 +31,7 @@ main() { log "Updating repository to match remote main branch..." git fetch origin - git checkout -f origin/main + git reset --hard origin/main if [ $? -ne 0 ]; then log "Failed to update to the latest main branch." exit 1