Preview:
cd my-webapp
git init
git add .
git commit -m "Initial commit with 5 pages"


git remote add origin https://github.com/yourusername/my-webapp.git
git push -u origin main
git pull origin main  # Pull latest
git fetch             # Fetch without merge


git clone https://github.com/yourusername/my-webapp.git
cd my-webapp
echo "<footer>Footer info</footer>" >> about.html
git add .
git commit -m "Added footer"
git push

git checkout -b new-feature
# make changes
git commit -am "new feature"
git checkout main
git merge new-feature
git push


GitHub Pages
Go to GitHub repo → Settings → Pages

Select branch: main, folder: /root

Access your site at https://yourusername.github.io/my-webapp


downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter