Skip to content

Commit aba4a05

Browse files
type: [docs], message: Add git init instruction to the documentation.
1 parent 99d8272 commit aba4a05

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ commit-lint:
100100
```
101101

102102
### Adding pre-commit message lint
103+
104+
Notes:
105+
1. To activate commit message template in a pre-existing local repository, go to the project root folder and run `git init` command.
106+
2. After `make commit-message-install`, Git will automatically activate commit message template to new cloned projects.
107+
103108
```
104109
make commit-message-install
105110
```

hack/set-pre-commit.sh

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ mkdir -p ~/.git-templates/hooks
33
cp -f ./hack//githooks/commit-msg ~/.git-templates/hooks
44
chmod +x ~/.git-templates/hooks/commit-msg
55
git init
6+
echo "To activate commit message template in a pre-existing local repository, go to the project root folder and run `git init` command."

0 commit comments

Comments
 (0)