現象
將 Hexo Blog 完整備份到 GitHub 後,檢查發現 theme/next 是空的,裡面沒有對應的檔案文件。

修改過程
移除沒有上傳的 next 主題
1
| git rm --cached themes/next
|

查看移除 next 主題後的狀態

next 資料夾下檔案狀態

Git Status

重新提交 next 資料夾
1 2
| git add themes/next git commit -m 'backup theme/next'
|

git push 推送到 GitHub
成功 push 到 GitHub,可以看到對應的檔案文件。
