UNPKG

simple-git-hooks

Version:

A simple, zero dependency tool for setting up git hooks for small projects

17 lines (12 loc) 366 B
#!/usr/bin/env node const {removeHooks} = require("./simple-git-hooks"); function uninstall() { console.log("[INFO] Removing git hooks from .git/hooks") try { removeHooks() console.log("[INFO] Successfully removed all git hooks") } catch (e) { console.log("[INFO] Couldn't remove git hooks. Reason: " + e) } } uninstall()