Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

github创建项目

  1. 创建仓库,项目名字要用username.github.io

git clone https://github.com/username/username.github.io

  1. 编辑后提交

cd username.github.io

echo "Hello World" > index.html

  1. 直接预览就可以了

git add --all

git commit -m "Initial commit"

git push -u origin main

  1. 浏览器访问 https://username.github.io.

Github官方说明