- Create a file at the root directory and save as name .version.json
{
"version": "3",
"build_number": "3.21.7"
}
-
Go to project folder .git/hooks/pre-commit and paste the code here
-
Then run
git commit -m "Initial Commit"
Notes: this sample need jq
. please install first