1
0
Fork 0

For #2914: Add Windows pre-push command on README (#2915)

master
Isaak Eriksson 2019-05-29 19:29:35 +02:00 committed by Colin Lee
parent 39df4c8522
commit 9617a06232
1 changed files with 5 additions and 1 deletions

View File

@ -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