-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat]: 建议支持设置不同级别的 git 仓库 #21
Labels
Comments
Hexon提供了自定义脚本的功能(pnpm script),我没理解错的话里面应该是可以执行任意git命令,那么就可以设置提交代码时提交哪些内容,比如只想提交博客目录下的_post文件夹可以使用下方命令: git add ./_post 理解有误的话请指正 |
可以使用自定义脚本功能, 添加需要运行的脚本:
将 # git_save.sh
git add ./source/_posts
git commit -m "chore: server update posts"
git push 对于更复杂的配置可以根据实际情况修改 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
目前如果配置 ssh 的话, 会把 hexon 也提交成一个 submodule 。
个人的想法是:如果可以做到 配置到
_posts
级别, 只更新博文相关, hexo 和 nexT 及 hexon 基本为固定或较少改动。The text was updated successfully, but these errors were encountered: