code: function (workingDirectory) {
          var gitPath = getClosestGitPath(workingDirectory);
  
          if (!gitPath) {
              throw new Error('git-hooks must be run inside a git repository');
          }
  
          var hooksPath = path.resolve(gitPath, HOOKS_DIRNAME);
          var hooksOldPath = path.resolve(gitPath, HOOKS_OLD_DIRNAME);
  
          if (!fsHelpers.exists(hooksPath)) {
              throw new Error('git-hooks is not installed');
          }
  
          fsHelpers.removeDir(hooksPath);
  
          if (fsHelpers.exists(hooksOldPath)) {
              fs.renameSync(hooksOldPath, hooksPath);
          }
      }
docs: Uninstalls git hooks.
  
  @param {String} [workingDirectory]
  @throws {Error}