git-rev-sync : Synchronously get the current git commit hash, tag, or branch. You can installing git-rev-sync npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install git-rev-sync $ sudo npm install -g git-rev-sync
If want to update the git-rev-sync package execute the command as below,
$ sudo npm update git-rev-sync
Update package globally,
$ npm install -g git-rev-sync
$ sudo git clone https://github.com/rektide/git-rev-sync.git
$ sudo npm install -g ./git-rev-sync
git-rev-sync@1.9.1 /usr/lib/node_modules/git-rev-sync
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall git-rev-sync
Package Name | git-rev-sync |
Version | 1.9.1 |
Description | Synchronously get the current git commit hash, tag, or branch |
Released Date | 2017-04-25T19:09:35.998Z |
Published by | kurttheviking |
How to Learn | https://www.npmjs.com/package/git-rev-sync/tutorial |