mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
publish-gh-pages: don't reset hard to have network bandwidth in transferring all files from scratch
This commit is contained in:
@@ -3,13 +3,11 @@
|
|||||||
set -eu
|
set -eu
|
||||||
git push
|
git push
|
||||||
./build-doc --github-pages
|
./build-doc --github-pages
|
||||||
git branch -D gh-pages
|
git checkout gh-pages
|
||||||
git checkout --orphan gh-pages
|
git checkout master -- '*.png' _config.yml
|
||||||
git reset
|
|
||||||
cp out/README.html index.html
|
cp out/README.html index.html
|
||||||
git add _config.yml index.html
|
git add index.html
|
||||||
git commit --message "$(git log -n1 --pretty='%H' master)"
|
git commit --message "$(git log -n1 --pretty='%H' master)"
|
||||||
git push --force
|
git push --force
|
||||||
git symbolic-ref HEAD refs/heads/master
|
git checkout -
|
||||||
git reset
|
|
||||||
rm index.html
|
rm index.html
|
||||||
|
|||||||
Reference in New Issue
Block a user