Created
April 1, 2023 13:10
-
-
Save AGou-ops/1c8509673a4c003747a5eb218f5a8bf0 to your computer and use it in GitHub Desktop.
hexo/hugo git手动推送脚本
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --- 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 [email protected]: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 [email protected]: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