Initialize git repository at given directory path
- Written in Typescript
Initialize git repository at given directory path
const { initGit } = require('init-git');
initGit('./my-git-repo')
.then(result => console.log(result)) // true
initGit('bad-path')
.catch(error => console.log(error.message)) // Invalid path: bath-path
MIT © Nivrith