We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 115d2e7 commit 1a18cfeCopy full SHA for 1a18cfe
.husky/pre-commit
@@ -3,9 +3,9 @@
3
4
DIR=$(cd `dirname $0` && pwd -P)
5
6
-# adds these changes to be part of the current commit
7
-git checkout $DIR/../public/node-releases-data.json
8
-git checkout $DIR/../public/blog-posts-data.json
+# if the generated files got tracked to this commit we revert them
+git reset $DIR/../public/node-releases-data.json
+git reset $DIR/../public/blog-posts-data.json
9
10
# lint and format staged files
11
npx lint-staged
0 commit comments