第一个blog更新脚本

尝试写了一个很弱智的可执行脚本.sh 试一下。同时重命名了2020年的blog文件名。

cd ~
cd $
hugo #执行hugo编译动作
git pull (仓库A地址) master
git add .
git commit -m ' Updated source files'
git push origin master 

cd public
git pull (仓库B地址)  master
git add .
git commit -m 'Update a blog'
git push origin master
date=$(date +%Y%m%d%H%M)
Built with Hugo
Theme Stack designed by Jimmy