vue-carousel-3d
Version:
Beautiful, flexible and touch supported 3D Carousel for Vue.js
65 lines (46 loc) • 1.89 kB
Markdown
# hexo-deployer-git
[](https://travis-ci.org/hexojs/hexo-deployer-git) [](http://badge.fury.io/js/hexo-deployer-git) [](https://coveralls.io/r/hexojs/hexo-deployer-git?branch=master) [](https://ci.appveyor.com/project/tommy351/hexo-deployer-git/branch/master)
Git deployer plugin for [Hexo].
## Installation
``` bash
$ npm install hexo-deployer-git --save
```
## Options
You can configure this plugin in `_config.yml`.
``` yaml
# You can use this:
deploy:
type: git
repo: <repository url>
branch: [branch]
message: [message]
name: [git user]
email: [git email]
# or this:
deploy:
type: git
message: [message]
repo:
github: <repository url>,[branch]
gitcafe: <repository url>,[branch]
```
- **repo**: Repository URL
- **branch**: Git branch to deploy the static site to
- **message**: Commit message. The default commit message is `Site updated: {{ now('YYYY-MM-DD HH:mm:ss') }}`.
- **name** and **email**: User info for committing the change, overrides global config. This info is independent of git login.
## How it works
`hexo-deployer-git` works by generating the site in `.deploy_git` and *force pushing* to the repo(es) in config.
If `.deploy_git` does not exist, a repo will initialized (`git init`).
Otherwise the curent repo (with its commit history) will be used.
Users can to clone the deployed repo to `.deploy_git` to keep the commit history.
```
git clone <gh-pages repo> .deploy_git
```
## Reset
Remove `.deploy_git` folder.
``` bash
$ rm -rf .deploy_git
```
## License
MIT
[Hexo]: http://hexo.io/