Publicação de Páginas

Github Pages

Create a new repository link

Create a new repository page

Repository page

Install git

Donwlos Git

terminal
# apt-get install git
terminal
# apt-get install git

Create site folder

terminal
$ mkdir site-name
terminal
$ mkdir site-name

Open folder

terminal
$ code site-name
terminal
$ code site-name

Go to File > Menu > Open folder

Initialize Git Repository

terminal
$ git init
terminal
$ git init

Create site

Git add

terminal
$ git add -A
terminal
$ git add -A

Git commit

terminal
$ git config user.email "example@email.com"
$ git config user.name "example"
terminal
$ git config user.email "example@email.com"
$ git config user.name "example"
terminal
$ git commit -m "primeira versão do site"
terminal
$ git commit -m "primeira versão do site"

Git remote add

terminal
$ git remote add origin https://github.com/luizchaves/site-name.git
terminal
$ git remote add origin https://github.com/luizchaves/site-name.git

Git push

terminal
$ git push -u origin master
terminal
$ git push -u origin master

Enter login and password

git-credential-store - Helper to store credentials on disk:

terminal
$ git config credential.helper store
$ git push
terminal
$ git config credential.helper store
$ git push

Repository page with code

Create github page

username.github.io/site-name/

Vercel

Netlify

Referências

Editar esta página