-
Create a Gatsby site.
Use the Gatsby CLI to create a new site, specifying the minimal starter.
# create a new Gatsby site using the minimal starter npm init gatsby
-
Start developing.
Navigate into your new site’s directory and start it up.
cd my-gatsby-site/ npm run develop
-
Open the code and start customizing!
Your site is now running at http://localhost:8000!
Edit
src/pages/index.js
to see your site update in real-time! -
Learn more
Deploy this starter with one click on Netlify:
create a new repository on the command line
echo "# gatsby-site" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/joe62/gatsby-site.git
git push -u origin main
push an existing repository from the command line
// 首次
git remote add origin https://github.com/joe62/gatsby-site.git
git branch -M main
git push -u origin main
提交更新
git add .
git commit -m "[说明内容]"
git push