create-git-branch

1.0.1 • Public • Published

create-git-branch

It creates a new branch in the specified repository

Installation

Install the package with npm and add it to your development dependencies:

npm install --save create-git-branch

Usage

Basic

var branch = require('create-git-branch');
 
branch('git@github.com:adamnowocin/create-git-branch.git', '1.0.0').then(function() {
  // do something
});

Handle errors

var branch = require('create-git-branch');
 
branch('git@github.com:adamnowocin/create-git-branch.git', '1.0.0').then(function() {
  // do something
}, function(err) {
  // do something
});

Specify temp repository folder

var branch = require('gulp-create-git-branch');
 
branch('git@github.com:adamnowocin/create-git-branch.git', '1.0.0', 'tmp-repo').then(function() {
  // do something
});

License

create-git-branch is licensed under the MIT license. For the full license, see the LICENSE file.

Readme

Keywords

Package Sidebar

Install

npm i create-git-branch

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • adamnowocin