錯誤如下

1
2
3
4
5
6
7
8
9
10
11
Error in plugin 'gulp-gh-pages'
Message:
Command failed: git pull
Your configuration specifies to merge with the ref 'refs/heads/gh-pages'
from the remote, but no such ref was fetched.

Details:
killed: false
code: 1
signal: null
cmd: git pull

上網查了一下,找到原因是,gulp-gh-pages 主動將 .publish 資料夾裡的檔案存為暫存,只要把 .publish 資料夾裡的檔案清空就可以重新 deploy 囉。

參考來源: https://github.com/GovLab/ogrx-2

簡單寫一下作為紀錄,不然下次又找不到了。
頗短的文章,哈哈。