프로젝트
GitHub에서 보기
coneycode/hexo-git-backup
소개
블로그를 Git에 백업할 수 있습니다.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalgit-backup
git-backup.
Install
if your hexo version is 2.x.x, you should install as follow:
$ npm install [email protected] --save
if version is 3.x.x, you should install as follow:
$ npm install hexo-git-backup --save
Update
if you install with --save, you must remove firstly when you update it.
$ npm remove hexo-git-backup
$ npm install hexo-git-backup --save
Configure
You should configure this plugin in _config.yml.
backup:
type: git
repository:
github: [email protected]:xxx/xxx.git,branchName
gitcafe: [email protected]:xxx/xxx.git,branchName
Using
hexo backup
or
hexo b
Options
if you want to back up with your theme,just add theme: your theme name,your theme name in _config.yml.
backup:
type: git
theme: coney,landscape,xxx
repository:
github: [email protected]:xxx/xxx.git,branchName
gitcafe: [email protected]:xxx/xxx.git,branchName
Attention: if you do as above, the dir themes/coney/.gitwill be removed
if you want DIY commit message, just add 'message: update xxx'.
backup:
type: git
message: update xxx
repository:
github: [email protected]:xxx/xxx.git,branchName
gitcafe: [email protected]:xxx/xxx.git,branchName
Now you can backup all the blog!
Problems
You may get some troubles by your computer' permission。
Error: EISDIR, open
it is caused by permission. just do 'sudo hexo b'
sudo hexo b
관련 프로젝트 살펴보기
불러오는 중…