When you want to change something or update the website:
- First time: clone the repo on your laptop
git clone https://github.com/olewinther/github.io
- If you already have the repo on your laptop
cd update_winther
git pull
- change something
git add .
git commit -m "Change something"
git push origin main
now your changes are online. If you host your website with github.io
, stop here.
If your website is on another server, ssh
in the server
- First time you copy the content on the server:
git clone https://github.com/olewinther/github.io
The index.html
should be recognised automatically.
If the repo is already on the server
cd
in the folder andpull
cd update_winther
git pull
then follow the same procedure for updating.