When you want to change something or update the website:
- First time: clone the repo on your laptop
git clone https://github.com/olewinther/olewinther.github.io- If you already have the repo on your laptop
cd olewinther.github.io
git pull- change something
git add .
git commit -m "Change something"
git push origin mainnow 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/olewinther.github.ioThe index.html should be recognited automatically.
If the repo is already on the server
cdin the folder andpull
cd olewinther.github.io
git pullthen follow the same procedure for updating.