GitHub Pages Not Updating After Pushing Changes #152753
-
Select Topic AreaQuestion BodyHi, I recently deployed a website using GitHub Pages, and it was working fine. However, after making some updates and pushing my changes, the site is still showing the old version. I tried the following steps but nothing worked: Refreshed the browser cache (Ctrl + Shift + R / Cmd + Shift + R) Any help would be appreciated! Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If your GitHub Pages site is not updating after pushing changes, follow these steps to fix it: ✅ 1. Force Refresh Your BrowserSometimes, your browser caches the old version of the site. Try: ✅ 2. Check GitHub Pages Build Status
✅ 3. Ensure You're Pushing to the Correct BranchBy default, GitHub Pages serves from:
👉 Run this command to verify your branch: git branch 👉 Check your GitHub Pages source branch under: ✅ 4. Trigger a Manual RebuildIf your site is stuck, force GitHub Pages to rebuild by:
git commit --allow-empty -m "Trigger GitHub Pages rebuild"
git push
✅ 5. Check for CNAME ConflictsIf your custom domain isn’t updating, check your CNAME file:
🔥 Final Fix: Delete & Re-Enable GitHub PagesIf nothing works:
✅ Your changes should now be live! 🚀 TL;DR (Quick Fixes)✔ Ctrl + Shift + R to refresh the browser Hope this helps! |
Beta Was this translation helpful? Give feedback.
If your GitHub Pages site is not updating after pushing changes, follow these steps to fix it:
✅ 1. Force Refresh Your Browser
Sometimes, your browser caches the old version of the site. Try:
🔹 Windows/Linux: Press Ctrl + Shift + R
🔹 Mac: Press Cmd + Shift + R
✅ 2. Check GitHub Pages Build Status
✅ 3. Ensure You're Pushing to the Correct Branch
By default, GitHub Pages serves from:
main
ormaster
(if configured this way)gh-pages
(for some projects)/docs
folder (if set in settings)…