You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
366 B
16 lines
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()
|
|
|