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

    var args = [
      'branch',
      options.force ? '-D' : '-d',
      options.branch
    ];

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

    var args = [
      'branch',
      options.force ? '-D' : '-d',
      options.branch
    ];

    return git(args)
        .then(silent);
  }
function removeLocalBranch ( options ) { assert . ok ( options . branch , 'branch is mandatory' ) ; var args = [ 'branch' , options . force ? '-D' : '-d' , options . branch ] ; return git ( args ) . then ( silent ) ; }
Removes a local branch

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

//while in master...
git.removeLocalBranch({
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|Boolean} [options.force] force the delete (-D)
@param {callback} [cb] The execution callback result
@returns {Promise} Promise Resolves with undefined
Removes a local branch