0.1.2 • Published 2 years ago
gitappan v0.1.2
gitappan
gitappan is a NPM package to manage GIT repositories in the working system which can be managed by the SSH.
Installation
Use npm to install gitappan.
npm i gitappan
Usage
const Gitappan = require('gitappan');
# Initialize the directory/repository
const gitDir = Gitappan(path.join(__dirname, '../directory1');
# Get the last GIT commit's ID
const commit ID = gitDir.getLastCommitID();
# Get the last GIT commit's author
const author = gitDir.getLastCommitAuthor();
Contributing
Pull requests are welcome, so please feel free to contribute. For major changes, please open an issue to discuss what you would like to change/fix.