Skip to content

Commit e2650f3

Browse files
committed
Check whether gh-pages branch exist, and fix a typo.
1 parent 2c2ba5a commit e2650f3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ linkcheck:
126126
"or in $(BUILDDIR)/linkcheck/output.txt."
127127

128128
gh-pages: clean html
129+
@if ! git rev-parse refs/heads/gh-pages >/dev/null 2>&1 ; then \
130+
echo "Branch gh-pages not exists, forgot check it out?" >&2; \
131+
exit 1; \
132+
fi
129133
@cp README.md _build/html/
130134
@echo '*' > _build/html/images/.gitignore
131135
@git add -f _build/html; \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
这是一本关于GitHub的书,在线阅读请访问: <http://www.worldhello.net/gogithub>
1+
这是一本关于GitHub的书,在线阅读请访问: <http://www.worldhello.net/gotgithub>
22

33
动笔写GitHub不是因为我对其了解,恰恰是对其太不了解。在我写的 [《Git权威指南》][gotgit] 一书中,涉及到GitHub的只有区区三页纸,这显然回答不了读者对于GitHub的诸多疑问。
44

0 commit comments

Comments
 (0)