gulp-git-push
Pushes all committed changes to a remote repository.
It will push all committed changes (you can use git.commit
from gulp-git
for that) to the specified repository.
Usage
Simple gulpfile
var gulp = ;var bump = ;var git = ;var push = ; gulp;
Complex gulpfile
var gulp = ;var bump = ;var git = ;var gutil = ;var filter = ;var exec = exec;var argv = argv;var tag = ;var push = ; /** * Bumping and tagging version, and pushing changes to repository. * * You can use the following commands: * gulp release --type=patch # makes: v1.0.0 → v1.0.1 * gulp release --type=minor # makes: v1.0.0 → v1.1.0 * gulp release --type=major # makes: v1.0.0 → v2.0.0 * * Please read http://semver.org/ to understand which type to use. * * The 'gulp release' task is an example of a release task for a NPM package. * This task will run 'publish' as a dependent and 'bump'. **/ gulp; gulp; gulp;
Arguments
repository
Type: String
Default: origin
The 'remote' repository for push operation.
refspec
Type: String
Default: HEAD
Specify what destination ref to update with what source object.
options
Type: object
Default: { args: '--follow-tags' }
Thanks 🍺
- this gulp plugin is based on gulp-tag-version by ikari-pl
- @stevelacy by gulp-bump and gulp-git