Update auto-sync scripts to use git reset --hard

This commit is contained in:
2025-12-28 10:17:18 +11:00
parent 929477c1f7
commit 039e126d9a
2 changed files with 6 additions and 5 deletions

View File

@@ -36,9 +36,9 @@ fi
log "🔄 Changes detected! Local: ${LOCAL:0:7} -> Remote: ${REMOTE:0:7}"
# Pull changes
if ! git pull origin main; then
log "❌ Error: Git pull failed"
# Force update
if ! git reset --hard origin/main; then
log "❌ Error: Git reset failed"
exit 1
fi