1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| git config --global init.defaultBranch main;\
git config --global user.name "hcy-asleep";\
git config --global user.email 2420066864@qq.com;\
git config --global credential.helper store;\
git clone https://github.com/HCY-ASLEEP/Hugo_Blog_Source.git;\
mv Hugo_Blog_Source/ blogs/;\
mkdir blogs/source/themes/;\
git clone https://github.com/adityatelange/hugo-PaperMod.git blogs/source/themes/PaperMod/;\
mkdir blogs/source/public/;\
cp blogs/source/autogit blogs/source/public/autogit;
sed -i '1 a script_dir=$(pwd)\ncd ..\nhugo\ncd $script_dir' blogs/source/public/autogit;\
echo "autogit" >> blogs/source/public/.gitignore;\
cd blogs/source/public/;\
git init;\
git remote add origin https://github.com/HCY-ASLEEP/HCY-ASLEEP.github.io.git;\
cp ../google188014ab03dc55b7.html . ;\
cd ..
|