Run the following sh script inside this repository
chmod +x install.sh && ./install.sh
or execute manually
echo "Set NPM Global Directory"
npm config set prefix '/usr/local'
echo "Installing Commitizen Globally"
npm install -g commitizen
echo "Installing JIRA smart commits"
npm install -g Bannerwise/cz-jira-smart-commit#master
echo "Creating a global config file"
echo '{ "path": "/usr/local/lib/node_modules/cz-jira-smart-commit/" }' > ~/.czrc
To trigger the script, run:
git cz
or
cz
No need for cz file inside the project directory
cz --allow-empty