使用命令check_site
,我得到了两条[TODO],其中有“safety add”的建议,但我不太明白这两条消息的真正含义。我是否需要将Thumbs.db
,.hugo_build.lock
和/public/
,/resources/
添加到GitHub .gitignore
文件中?
> blogdown::`check_site`()
... ...
| Checking for items you can safely ignore...
○ Found! You have safely ignored: .DS_Store
● [TODO] You can safely add to .gitignore: Thumbs.db, .hugo_build.lock
| Checking for items to ignore if you build the site on Netlify...
● [TODO] When Netlify builds your site, you can safely add to .gitignore: /public/, /resources/
目前,我的GitHub .gitignore
文件内容如下所示:
.Rproj.user
.Rhistory
.RData
.Ruserdata
.Rdata
.httr-oauth
.DS_Store
那么我应该改为:
.Rproj.user
.Rhistory
.RData
.Ruserdata
.Rdata
.httr-oauth
.DS_Store
Thumbs.db
.hugo_build.lock
/public/
/resources/
1条答案
按热度按时间vktxenjb1#
是的,您可以将这些文件添加到
.gitignore
,这样它们就不会受到版本控制,因为它们是特定于操作系统/构建版本的。