1

hexo/git命令

 2 years ago
source link: https://lzh-style.github.io/2021/05/12/hello-world/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

1.hexo

  • 生成新文章名字叫我的新文章 也可以手动创建
$ hexo new "我的新文章"
  • 清除缓存文件 db.json 和已生成的静态文件 public
$ hexo cl
  • 生成网站静态文件到默认设置的 public 文件夹
$ hexo generate
  • 进行本地预览
$ hexo s
  • 自动生成网站静态文件,并部署到设定的仓库。
$ hexo deploy

2.git

  • 添加所有文件到暂存区
  • 把文件提交到仓库 -m 后面的是备注信息
  • 推送至远程仓库
git add .
git status
git commit -m '第一次提交'
git push

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK