Skip to content

Commit 33af906

Browse files
committed
feat: Create pre-push
1 parent 0138d58 commit 33af906

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hooks/pre-push

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh -e
2+
3+
# On a feature branch that has no remote yet, this first part would fail.
4+
git pull --rebase || git pull --rebase origin master
5+
6+
# Prevent push on failed Jekyll build.
7+
make build

0 commit comments

Comments
 (0)