Skip to content

Commit

Permalink
Merge pull request #431 from chronoB/chronoB-patch-1
Browse files Browse the repository at this point in the history
added init-templatedir example windows cmd/ps
  • Loading branch information
asottile committed Nov 30, 2020
2 parents b45a8d2 + ec8e425 commit 569a1f9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.mako
Expand Up @@ -949,6 +949,18 @@ git config --global init.templateDir ~/.git-template
pre-commit init-templatedir ~/.git-template
```
For Windows cmd.exe use `%HOMEPATH%` instead of `~`:
```batch
pre-commit init-templatedir %HOMEPATH%\.git-template
```
For Windows PowerShell use `$HOME` instead of `~`:
```powershell
pre-commit init-templatedir $HOME\.git-template
```
Now whenever a repository is cloned or created, it will have the hooks set up
already!
Expand Down

0 comments on commit 569a1f9

Please sign in to comment.