If you make the script executable and in your bin
directory, you can run it from anywhere.
$ chmod +x commit_msg_tag.sh
$ sudo mv commit_msg_tag.sh /usr/local/bin/commit_msg_tag
Then run as:
$ commit_msg_tag
$ git commit -m "[MAJOR] new feature"
$ commit_msg_tag
$ # OR run directory if in current directory.
$ bash commit_msg_tag.sh