Skip to content

Instantly share code, notes, and snippets.

@AGou-ops
Created April 1, 2023 13:10
Show Gist options
  • Save AGou-ops/1c8509673a4c003747a5eb218f5a8bf0 to your computer and use it in GitHub Desktop.
Save AGou-ops/1c8509673a4c003747a5eb218f5a8bf0 to your computer and use it in GitHub Desktop.
hexo/hugo git手动推送脚本
# --- hexo \\ hexo init test
#!/usr/bin/bash
hexo g
cd public
git init
git add -A
git commit -m "rebuilding site $(date)"
git remote add origin git@github.com:xxx
git push --set-upstream origin main
# --- hugo \\ hugo new site test
#!/usr/bin/bash
hugo
cd public
git init
git add -A
git commit -m "rebuilding site $(date)"
git remote add origin git@github.com:xxx
git push --set-upstream origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment