[fenix] No Issue: Add pre-push hook instruction for PowerShell (https://github.com/mozilla-mobile/fenix/pull/4018)

The mklink command is not available in PowerShell, making the previous
documentation for pre-push hooks on Windows incomplete.
pull/600/head
Björn Petersen 5 years ago committed by Colin Lee
parent a7d73b28e6
commit e071984e41

@ -51,10 +51,14 @@ 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 privileges:
or for Windows run this command using the Command Prompt with administrative privileges:
```sh
mklink .git\hooks\pre-push ..\..\config\pre-push-recommended.sh
```
or using PowerShell:
```sh
New-Item -ItemType SymbolicLink -Path .git\hooks\pre-push -Value (Resolve-Path config\pre-push-recommended.sh)
```
To push without running the pre-push hook (e.g. doc updates):
```sh

Loading…
Cancel
Save