Use -e option instead of exit
Recreaet gh-page branch from remote when you have it