This repository contains a minimal black-and-white personal homepage for GitHub Pages.
python3 -m http.server 8000
Then open: http://localhost:8000
- Push this repo to GitHub.
- Open Settings → Pages.
- Under Build and deployment, choose:
- Source: Deploy from a branch
- Branch:
main - Folder:
/ (root)
- Save and wait a few minutes.
If the site cannot be published, check these common causes:
index.htmlmust exist in the selected Pages folder (this repo keeps it in root).- Your latest commit must be on the branch selected in Settings → Pages.
- If you are working on another branch (for example
work), merge it intomainbefore publishing. - In Settings → Pages, confirm Branch = main and Folder = /(root).
- Wait 2–5 minutes, then refresh the Pages status and open the generated URL.
Useful commands:
git checkout main
git merge work
git push origin main
If index.html shows markers like <<<<<<<, =======, >>>>>>>, keep the English minimal version and remove all conflict markers.
Quick fix:
# keep the current branch version of index.html
git checkout --ours index.html
git add index.html
git commit -m "fix: resolve merge conflict in index.html"
If you want the incoming branch version instead, use --theirs.
If direct push to main is blocked, open a Pull Request from your working branch to main, then merge it on GitHub.
Typical steps:
git push -u origin work
Then in GitHub UI:
- Open Compare & pull request.
- Base:
main, Compare:work. - Create PR and merge.
- Re-run GitHub Pages deployment if needed.