Issue with updating Hugo blogdown's academic theme folder using git, GitHub desktop

三世轮回 提交于 2019-12-08 10:11:55

问题


Issue

I’ve been having some issues with git/GitHub desktop sync issues with Hugo Blogdown theme folder (academic). After renaming/updating, I've a 'missing themes folder'. Once this is fixed, I'll be able to host my Hugo Blogdown website w/ academic theme. If anyone has had similar issues, please advise. Thanks!

Environment

I work with macOS High Sierra (v10.13.4) and RStudio (v1.2.616) w/ Hugo (v0.30) blogdown (v0.6.3) and the academic theme.

Previously raised this issue here

  • GitHub: Desktop
  • GitHub: Hugo-academic
  • Hugo discourse

I'm posting it again here on Stack Exchange so as to get a quick resolution.

Updating the Hugo theme (academic)

I tried to update the theme folder to make sure I have the latest version with the recent fixes+suggestions. However, I've been having trouble with it the past few times. It probably started with my renaming the folder name from Hugo-academic to academic (back and forth) using RStudio+terminal. Now, I am not able to add the themes folder to my online GitHub repo no matter what I fix. Not sure where the underlying problem is: git/GitHub desktop, Hugo blogdown or the academic theme issue. Hence, I've used all these tags!

Missing GitHub folder

Assuming that it was a GitHub desktop issue, I initially posted my concern here (please see screenshots of error messages). I followed the steps for academic theme update here and stackoverflow for git submodule add.

Based on my most recent update in this issue, the commit did happen. Bottom line: I don't see the folder on GitHub, yet!

Clearly, I'm missing something. I'd appreciate any troubleshooting help, and please let me know if you need any further clarification on the question. thank you!!

ps. Of the suggested modes, I used the zip option to update the academic folder even though I may have used git clone option earlier. I am having trouble with either/all options now.


回答1:


Updating via Git cloning - as explained in the wonderful doc pages by George Cushen – did not work for me too. I changed the name of the remote repository from origin to upstreamand did all the other following commands. But there was no response at all in the terminal.

It seems there is some incompatibility between R/RStudio/blogdown/GitHub as listing the available updates didn't work either. See also the answer by George Cushen at his GitHub repo.

It appears that this issue is mainly related to Git/Hugo in general and their integration with RStudio/Blogdown.

So I changed the method for updating. I succeeded with the ZIP method without any problem.



来源:https://stackoverflow.com/questions/50704330/issue-with-updating-hugo-blogdowns-academic-theme-folder-using-git-github-desk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!