Stash/pop any local changes before pulling updates

More user customizations will survive without commits.
This commit is contained in:
David Heinemeier Hansson
2025-07-17 14:12:58 -07:00
parent 2235332cb9
commit e9f0239f57
+3 -1
View File
@@ -10,8 +10,10 @@ else
last_updated_at=$(git log -1 --format=%cd --date=unix)
fi
# Get the latest
# Get the latest while trying to preserve any modifications
git stash
git pull
git stash pop
# Run any pending migrations
for file in migrations/*.sh; do