获取本 repo 读写权限 确保你的 ssk key 已上传
- git clone [email protected]:hhw28/blog.git
- cd blog
- git config --global user.name 你的名字
- git config --global user.email 你的邮箱
- git add .
- git commit -am "modify something" (注意空格!!!)
- git push -u origin master 上传自己的代码
以后只需要 git push 就可以上传代码了。 如果报错, 先执行 git pull origin master再执行git push origin master 如果进入一个奇怪的页面(vim),输入:wq
这个 repo 里的代码可通过以下地址打开在线预览模式 https://hhw28.github.io/index.html
默认打开index.html文件进行预览 https://hhw28.github.io