步驟

  1. 建立容器
    • 取得GitHub帳號
    • 建立repository,命名規則 username.github.io
  2. 複製容器
    git clone https://github.com/username/username.github.io
    
  3. 世界您好
    cd username.github.io
    echo "Hello World" > index.html
    
  4. 上傳
    git add --all
    git commit -m "Initial commit"
    git push
    

    記得輸入帳號密碼

參考

  • [GiHub Pages][1] [1]:https://pages.github.com/