https://github.com/webkong/git-deploy-directory
Deploy a directory to a git branch. You can use the configuration file to deploy easily.Useful to deploy to GitHub Pages.
https://github.com/webkong/git-deploy-directory
deploy git git-deploy
Last synced: 4 months ago
JSON representation
Deploy a directory to a git branch. You can use the configuration file to deploy easily.Useful to deploy to GitHub Pages.
- Host: GitHub
- URL: https://github.com/webkong/git-deploy-directory
- Owner: webkong
- License: mit
- Created: 2018-10-26T16:21:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-26T16:50:48.000Z (over 7 years ago)
- Last Synced: 2025-10-02T10:52:27.048Z (8 months ago)
- Topics: deploy, git, git-deploy
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/git-deploy-directory
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
English|[简体中文](./README_zh.md)
# git-deploy-directory
Deploy a directory to a git branch. You can use the configuration file to deploy easily.Useful to deploy to GitHub Pages.
### Installation
``` bash
$ npm install -D git-deploy-directory
or
$ yarn add -D git-deploy-directory
```
### Usage
``` bash
// init
$ git deploy init //Initialize the configuration file
```
Configuration file
```
{
"type": "git",
"repo": "https://github.com/webkong/xxxx.git", // git repo
"branch": "docs", // git branch
"dir": "build" // You are going to deploy directory
}
```
```
// deploy
$ git deploy push
```
### License
[MIT](http://opensource.org/licenses/MIT)
## Author
