Commit fc0a15ab authored by Evan Read's avatar Evan Read

Edit Lefthook documentation

parent 2116bb0c
...@@ -232,6 +232,7 @@ Laravel ...@@ -232,6 +232,7 @@ Laravel
LDAP LDAP
ldapsearch ldapsearch
Leiningen Leiningen
Lefthook
Libravatar Libravatar
liveness liveness
Lograge Lograge
......
...@@ -37,14 +37,16 @@ for changed files. This saves you time as you don't have to wait for the same er ...@@ -37,14 +37,16 @@ for changed files. This saves you time as you don't have to wait for the same er
by CI/CD. by CI/CD.
Lefthook relies on a pre-push hook to prevent commits that violate its ruleset. Lefthook relies on a pre-push hook to prevent commits that violate its ruleset.
If you wish to override this behavior, pass the environment variable `LEFTHOOK=0`. To override this behavior, pass the environment variable `LEFTHOOK=0`. That is,
That is, `LEFTHOOK=0 git push`. `LEFTHOOK=0 git push`.
You can also: You can also:
- Define [local configuration](https://github.com/Arkweid/lefthook/blob/master/docs/full_guide.md#local-config). - Define [local configuration](https://github.com/Arkweid/lefthook/blob/master/docs/full_guide.md#local-config).
- Skip [checks per tag on the fly](https://github.com/Arkweid/lefthook/blob/master/docs/full_guide.md#skip-some-tags-on-the-fly), e.g. `LEFTHOOK_EXCLUDE=frontend git push origin`. - Skip [checks per tag on the fly](https://github.com/Arkweid/lefthook/blob/master/docs/full_guide.md#skip-some-tags-on-the-fly).
- Run [hooks manually](https://github.com/Arkweid/lefthook/blob/master/docs/full_guide.md#run-githook-group-directly), e.g. `lefthook run pre-push`. For example, `LEFTHOOK_EXCLUDE=frontend git push origin`.
- Run [hooks manually](https://github.com/Arkweid/lefthook/blob/master/docs/full_guide.md#run-githook-group-directly).
For example, `lefthook run pre-push`.
## Ruby, Rails, RSpec ## Ruby, Rails, RSpec
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment