smartgit
smart git wrapper for node.
smartgit expects git to be installed on target machine.
Availabililty
Status for master
Usage
We recommend the use of TypeScript for best in class intellisense
// import smartgit: // Initialize smartgit:// -- note: there are 3 ways to initialize smartgit// -- -- 1. with a existing Git repo// -- -- 2. with a cloned Git repo// -- -- 3. with a new Git repo // -- 1. existing Git Repo:let myExistingGitRepo = '/path/to/existing/git/repo/' // -- 2. cloned Git Repo:let myClonedGitRepo: GitReposmartgit // -- 3. new Git Repolet myNewGitRepo: GitReposmartgit // smartgit will create any new folder, be careful // Using smartgit instance// -- most used actions// -- all actions return promises, so make sure to use promise chaining for any dependent tasksmyExistingGitRepo // returns promise, stages all changed filesmyExistingGitRepo // returns promise, stages specific filesmyExistingGitRepo // returns promise, commits staged filesmyExistingGitRepostatus // returns promise myExistingGitRepo // returns promise, checks repo healthmyExistingGitRepo
Tip: use smartssh to setup your SSH environment