https://github.com/socratescli/git-deploy-archive
Using git archive to deploy several (or part of) projects.
https://github.com/socratescli/git-deploy-archive
git-archive
Last synced: 3 days ago
JSON representation
Using git archive to deploy several (or part of) projects.
- Host: GitHub
- URL: https://github.com/socratescli/git-deploy-archive
- Owner: socratescli
- License: mit
- Created: 2017-02-19T22:18:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-07-07T08:47:14.000Z (almost 6 years ago)
- Last Synced: 2026-03-08T21:41:52.047Z (4 months ago)
- Topics: git-archive
- Language: Shell
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-deploy-archive
Using git archive to deploy several (or part of) projects.
## Install
```
sudo curl -o `git --exec-path`/git-deploy-archive "https://raw.githubusercontent.com/socrateslee/git-deploy-archive/master/git-deploy-archive.sh"
sudo chmod +x `git --exec-path`/git-deploy-archive
```
## Usage
```
git deploy-archive
git deploy-archive --cfg
```
## .git-deploy-archive file
.git-deploy-archive file is a simple configuration file, each line of the file contains 1) remote repo address, 2) treeish, 3) file or directory path to extract, 4) optional local path prefix for content extracted. A sample file is as below:
```
# basic
git@your-repo.com:test master src
# extract a config.json from another repo to config/
git@your-repo.com:conf tag_1.2.0 config.json config
# extract a static/dist folder, and rename prefix from static/dist to dist
git@your-repo.com:frontend master static/dist static_files dist
```
__NOTE__
- [github doesn't support git archive](http://www.gilesorr.com/blog/git-archive-github.html)
- gitlab(ssh address) do support git archive.