git init
git add .
git commit -m "Add portfolio website"
git branch -M main
git remote add origin [email protected]:sufyanwithcode/sufyanwithcode.github.io.git
git push -u origin main- Go to repo → Settings → Pages
- Source:
Deploy from a branch - Branch:
main→/ (root) - Click Save
https://sufyanwithcode.github.io
Site goes live in 2–3 minutes after push.
Just open index.html in any browser — no build step needed.
# Optional: use a local server
npx serve .
# or
python3 -m http.server 8080git add .
git commit -m "Update portfolio"
git pushGitHub Pages auto-deploys on every push to main.