Skip to content

我用vuepress写自己博客,自动化实现,包含导航栏、gh-pages部署、git提交。

Notifications You must be signed in to change notification settings

yt46767/my-blog-vuepress

Repository files navigation

开始使用

开发

npm run dev

打包

npm run build

实现自动化

  • Gh-pages部署自动化
    • 发布到gh-pages
    npm run publish
    
    注:window系统,请使用git-bash执行。如果你是使用vscode,可以参考设置terminal运行程序

  • Git提交自动化
    • 命令说明: 命令|描述 -|-|
      --l|提交日志内容
      --b|创建分支
    • 示例:
      • 创建分支feature/log,并提交代码到这个分支,提交内容是完善git.sh
      npm run git --b "feature/log" --l "完善git.sh"
      
      • 提交代码到当前分支,提交内容是完善git.sh
      npm run git --l "完善git.sh"
      

参考

  • Git常见操作
    • 切换分支
    git checkout master
    
    • 把分支feature/log合并当前分支
    git merge feature/log
    
    • 缓存区取消
    git reset HEAD
    
    • 把全部更改的文件都取消
    git reset --hard HEAD
    

About

我用vuepress写自己博客,自动化实现,包含导航栏、gh-pages部署、git提交。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published