当我们把工程从远程仓库 clone 到本地并且做了部分修改之后,此时如果想要从远端用 git pull 获取新的版本时,因为直接 pull 会覆盖本地项目,因此 git 要求我们先 commit changes,避免数据丢失。
当然,如果我们要丢弃改动,强行覆盖,可以
1 | git reset --hard |
如果不想丢弃手头已做的修改,又需要获取远程仓库的一个版本,那么使用
1 | git stash |
stash 将当前所有未提交的修改保存在本地,意为储藏。
当我们把工程从远程仓库 clone 到本地并且做了部分修改之后,此时如果想要从远端用 git pull 获取新的版本时,因为直接 pull 会覆盖本地项目,因此 git 要求我们先 commit changes,避免数据丢失。
当然,如果我们要丢弃改动,强行覆盖,可以
1 | git reset --hard |
如果不想丢弃手头已做的修改,又需要获取远程仓库的一个版本,那么使用
1 | git stash |
stash 将当前所有未提交的修改保存在本地,意为储藏。
tag:
缺失模块。
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