tagged-git-commit
Get the commit hash and refs/tag of tagged commits, remote and local
Installation
$ npm i tagged-git-commit --save
or
$ yarn add tagged-git-commit
Usage
Returns an array of the commit hashes.
const taggedCommits = ; // the latest local tagged commit hash from process.cwd(); // the latest local tagged commit hash from the repo './path/to/repo'; // the latest 5 local tagged commit hashes from process.cwd(); // the latest tagged commit from process.cwd() from remote origin; // the latest tagged commit from process.cwd() from remote anotherOrigin; // the latest 3 tagged commit hashes from the repo './path/to/repo' from the remote origin;
LICENSE
MIT © Lukas Aichbauer