src/commands.js
function removeRemoteBranch(options) {
    assert.ok(options.branch, 'branch is mandatory');

    var args = [
      'push',
      options.remote || 'origin',
      ':' + options.branch
    ];

    return git(args)
        .then(silent);
  }
function removeRemoteBranch(options) {
    assert.ok(options.branch, 'branch is mandatory');

    var args = [
      'push',
      options.remote || 'origin',
      ':' + options.branch
    ];

    return git(args)
        .then(silent);
  }
function removeRemoteBranch ( options ) { assert . ok ( options . branch , 'branch is mandatory' ) ; var args = [ 'push' , options . remote || 'origin' , ':' + options . branch ] ; return git ( args ) . then ( silent ) ; }
Removes a remote branch

@example
var git = require('gitftw');

//while in master...
git.removeRemoteBranch({
branch: 'master'
});

@memberof git
@type {command}

@param {Object} options The options object. All its properties are {@link Resolvable}
@param {Resolvable|String} options.branch The branch name
@param {Resolvable|String} [options.remote="origin"] The remote ref where the branch will be removed
@param {callback} [cb] The execution callback result
@returns {Promise} Promise Resolves with undefined
Removes a remote branch