【工具】git的使用步骤

  1. git init:在本地初始化一个git仓库
  2. git add .:把所有的都add进去
  3. git status -sb:看文件状态
  4. git commit -v:(-v 会告诉我做了哪些变更)然后在第一行描述一下,保存退出(:wq)
  5. 上传到云端。github先创建一个仓库
  6. Repositories→New→设置 Repository name→Create repository
  7. 按照它第二块的提示做→…or push an existing repository from the command line
  8. 刷新
  9. 在 Settings 里,把预览打开,这样作品才能被人看见(GitHub Pages→master branch)
  10. 打开链接,后面不要忘了接 index.html

猜你喜欢

转载自blog.csdn.net/weixin_42971942/article/details/88548951