1
Mon Apr 07 2025 00:54:56 GMT+0000 (Coordinated Universal Time)
Saved by
@sem
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
content_copyCOPY
Comments