git .ignore使用摘要
在專案目錄下建立.gitignore的檔案
內容為要排除的檔案
bin-debug/ (排除bin-debug這個資料夾) main.as (排除main.as這個檔案) *.log (排除副檔名為.log的檔案)
如果想要做ignore的檔案已經被commit進Repository
git rm -f 相關檔案
git commit
設定好.gitignore的檔案
git status看一下,確認沒有被列在Untracked files
收工!
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true