Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
For #2914: Add Windows pre-push command on README (#2915)
Browse files Browse the repository at this point in the history
  • Loading branch information
myisaak authored and colintheshots committed May 29, 2019
1 parent 39df4c8 commit 9617a06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ recommend you use our provided pre-push hook in `config/pre-push-recommended.sh`
Using this hook will guarantee your hook gets updated as the repository changes.
This hook tries to run as much as possible without taking too much time.

To add it, run this command from the project root:
To add it on Mac/Linux, run this command from the project root:
```sh
ln -s ../../config/pre-push-recommended.sh .git/hooks/pre-push
```
or for Windows run this command with administrative priveleges:
```sh
mklink /d .git\hooks\pre-push ..\..\config\pre-push-recommended.sh
```

To push without running the pre-push hook (e.g. doc updates):
```sh
Expand Down

0 comments on commit 9617a06

Please sign in to comment.