From 9b268214bea34c63da56d979d302e47facc0d9ce Mon Sep 17 00:00:00 2001 From: nirajpandkar Date: Tue, 7 Jun 2016 10:51:11 +0530 Subject: [PATCH] Bypass githooks --- README.md | 6 ++++++ tips.json | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b7b7efb..2ba7e55 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`. * [Merge previous two commits into one.](#merge-previous-two-commits-into-one) * [List all branch is WIP](#list-all-branch-is-wip) * [Find guilty with binary search](#find-guilty-with-binary-search) +* [Bypass pre-commit and commit-msg githooks](#bypass-pre-commit-and-commit-msg-githooks) @@ -715,5 +716,10 @@ git bisect good # Say current state is good git bisect reset # Finish search ``` +## Bypass pre-commit and commit-msg githooks +```sh +git commit --no-verify +``` + diff --git a/tips.json b/tips.json index 7746fe5..c6b2fd3 100644 --- a/tips.json +++ b/tips.json @@ -317,4 +317,8 @@ }, { "title": "Find guilty with binary search", "tip": "git bisect start # Search start \ngit bisect bad # Set point to bad commit \ngit bisect good v2.6.13-rc2 # Set point to good commit|tag \ngit bisect bad # Say current state is bad \ngit bisect good # Say current state is good \ngit bisect reset # Finish search \n" -}] +}, + { + "title": "Bypass pre-commit and commit-msg githooks", + "tip": "git commit --no-verify" + }]