Check whether switching to gh-pages branch was successful.
Fix some bugs in update-gh-pages.sh.
update-gh-pages.sh: hide git add message.