Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eagafonov/git-mkdist
https://github.com/eagafonov/git-mkdist
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/eagafonov/git-mkdist
- Owner: eagafonov
- Created: 2015-01-08T09:38:10.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-08T09:58:01.000Z (almost 10 years ago)
- Last Synced: 2024-04-17T20:15:29.393Z (7 months ago)
- Language: Shell
- Size: 234 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-mkdist
Helper script to create a all-in-one-single-commit-git-repo to deploy without pushing whole history to server.
It does a few simple steps:
* clones current repo
* checkouts same commit as original repo
* checkout submodules
* wipes original git stuff
* init new repo and commit all files## Install
put `git-mkdist` script from root to your PATH
## Run
To make a dist, run `git mkdist` in git repo root you want make a dist from. Dist appears in forlder `.dist`
## ConfigurationA few git config variables are used
* mkdist.email, mkdist.name - author email/name to be used in resulting git repo. Default author string is 'gitmkdist '
* mkdist.keep-dists=(true|false) - Keep `.dists` content while creating new dists. Default is `false`# TODO
* Config var to specify target repo (dev/test/production)
* Get target commit as command line option
* Autoupdate script from github