Skip to content

Commit

Permalink
chore: add git-hooks/
Browse files Browse the repository at this point in the history
  • Loading branch information
yansheng836 committed Oct 3, 2024
1 parent 2fa0ca8 commit 4b3c857
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions git-hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
echo '提交前执行...'
# 自动将Github page内容同步到docs文件夹
cp .git/hooks/pre-commit ./git-hooks/
git add ./git-hooks/*

cp README.md ./docs/README.md
cp -r README.assets ./docs/
git add ./docs/*
echo '复制文件完成!'

0 comments on commit 4b3c857

Please sign in to comment.