Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,33 +150,33 @@ The same case that phpunit. You must create a PmdRules.xml in your project root

The most easy way to enable hook is copy hook file into your .git/hooks directory.

#For pre-commit hook:
# For pre-commit hook:

You can enable this hooks with composer or manually executing

```bash
$ cp vendor/bruli/php-git-hooks/src/PhpGitHooks/Infrastructure/Hook/pre-commit .git/hooks
```

#For commit-msg hook:
# For commit-msg hook:

```bash
$ cp vendor/bruli/php-git-hooks/src/PhpGitHooks/Infrastructure/Hook/commit-msg .git/hooks
```

#For pre-push hook:
# For pre-push hook:

```bash
$ cp vendor/bruli/php-git-hooks/src/PhpGitHooks/Infrastructure/Hook/pre-push .git/hooks
```

### execute.

####Valid pre-commit.
#### Valid pre-commit.

<img style="border:1px solid #ccc; padding:1px" src="https://raw.githubusercontent.com/bruli/php-git-hooks/master/Resources/docs/images/pre-commit.png" />

####Fail pre-commit.
#### Fail pre-commit.

<img style="border:1px solid #ccc; padding:1px" src="https://raw.githubusercontent.com/bruli/php-git-hooks/master/Resources/docs/images/pre-commit-failed.png" />

Expand Down