function getCurrentBranchName () {
  var promise = new Promise(function (resolve, reject) {
    child.exec('git rev-parse --abbrev-ref HEAD', function (error, stdout, stderr) {
      if (!error) {
        resolve(stdout.replace(/(\r\n|\n|\r)/gm, ''));
      }
    });
  });

  return promise;
}
getCurrentBranchName

@returns {string} The name of the current git branch