http://mayxwebloguxp4t2bgyc2i22zxylftibcajiyqmghlpyb7g6zxfsyiyd.onion/2025/08/10/tilde.html
考虑到我的网站每次构建基本上所有的页面都有改动,因此我不打算保留提交记录,所以我每次都会重新初始化git仓库,不过在我实际测试的时候,发现钩子触发的脚本执行 git init 的时候创建的是
裸仓库……查了一下貌似是环境变量的问题,只要把 GIT_DIR 变量删掉就没问题了,以下是实际的代码: cd ../public_html/ unset GIT_DIR
git init
git add . git commit -m "update" git remote add codeberg ssh://
[email protected]/mayx/pages.git
git remote add gitgay ssh://
[email protected]/mayx/pages.git
git remote add bitbucket ssh://
[email protected]/unmayx/unmayx.bitbucket.io.git
git push -f codeberg master
git push -f gitgay master
git push -f bitbucket...