- git init:在本地初始化一个git仓库
- git add .:把所有的都add进去
- git status -sb:看文件状态
- git commit -v:(-v 会告诉我做了哪些变更)然后在第一行描述一下,保存退出(:wq)
- 上传到云端。github先创建一个仓库
- Repositories→New→设置 Repository name→Create repository
- 按照它第二块的提示做→…or push an existing repository from the command line
- 刷新
- 在 Settings 里,把预览打开,这样作品才能被人看见(GitHub Pages→master branch)
- 打开链接,后面不要忘了接 index.html
【工具】git的使用步骤
猜你喜欢
转载自blog.csdn.net/weixin_42971942/article/details/88548951
今日推荐
周排行