简体   繁体   English

Blogdown,Git和RStudio:无法播放公共/文件夹

[英]Blogdown, Git and RStudio: Unable to Stage public/ folder

I am very new to blogdown and git. 我对blogdown和git很新。 While staging the files/folders (using RStudio) inside the project folder, I am unable to choose the following folders: 在项目文件夹中暂存文件/文件夹(使用RStudio)时,我无法选择以下文件夹:

RStudio-针对Git Blogdown

Can anybody let me know why this is happening and how can I stage/commit/push the above folders to the remote repository? 任何人都可以告诉我为什么会这样,我怎样才能将上述文件夹/提交/推送到远程存储库?

Thanks in advance. 提前致谢。

I had the same problem, so for future reference here are two ways I found to deal with it: 我遇到了同样的问题,所以为了将来参考,我发现有两种方法可以解决它:

  1. Try staging the files using the RStudio terminal . 尝试使用RStudio终端暂存文件。 Open the terminal (Tool > Terminal > New Terminal) and type in git add -A . 打开终端(工具>终端>新终端)并输入git add -A Then close the terminal. 然后关闭终端。 For me, this instantly staged all the files and let me commit and push them from within R Studio. 对我来说,这会立即上传所有文件,让我在R Studio中提交并推送它们。

  2. Download the GitHub desktop client . 下载GitHub桌面客户端 Within the client, add your R project file as a repository. 在客户端中,将R项目文件添加为存储库。 You can then use the 'fetch origin', 'commit master' and 'push origin' buttons to commit and push your folders. 然后,您可以使用'fetch origin','commit master'和'push origin'按钮来提交和推送文件夹。 So you'd use RStudio as you normally would to edit your website, but use the GitHub client to commit and push. 因此,您通常会使用RStudio编辑您的网站,但使用GitHub客户端进行提交和推送。

Hope this helps. 希望这可以帮助。 These solutions were provided by users at RStudio community https://community.rstudio.com/t/blogdown-unable-to-stage-and-commit/6621/4 这些解决方案由RStudio社区的用户提供https://community.rstudio.com/t/blogdown-unable-to-stage-and-commit/6621/4

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 排除blogdown的公用文件夹上的缓存 - Exclude cache on public folder for blogdown 渲染位于 blogdown static 文件夹中的 Rmd 文件时,RStudio 中 knitr 按钮的行为 - The behavior of the knitr button in RStudio when rendering an Rmd file sitting inside a blogdown static folder 如何防止页面被Blogdown编辑但仍放置在公用文件夹中? - How do I prevent a page from being edited by Blogdown but still placed in the public folder? R blogdown::serve_site() 在使用 Hugo “gesquive/slate” 主题时不会生成“public”文件夹 - R blogdown::serve_site() doesn't generate “public” folder when using Hugo “gesquive/slate” theme 无法在RStudio中使用Blogdown进行serve_site() - Cannot serve_site() using blogdown in RStudio 尽管在RStudio工作,但博客不会在Netlify中呈现 - blogdown not rendering in Netlify, despite working in RStudio Blogdown帖子出现在RStudio中,但没有出现在Github Pages中 - Blogdown posts appearing in RStudio but not on Github Pages .rmarkdown文件,blogdown和RStudio的窗口预览 - .rmarkdown file, blogdown and in window preview for RStudio Rstudio 云上的 blogdown hugo 页面预览未格式化 - Preview of blogdown hugo page on Rstudio cloud not formatted RStudio Blogdown使用new_site()后生成错误 - RStudio blogdown generates error after using new_site()
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM