git-init
Version:
35 lines (27 loc) • 873 B
Markdown
[![NPM version][npm-image]][npm-url]
[![Downloads][downloads-image]][downloads-url]
[![js-standard-style][standard-image]][standard-url]
Initialize a new git repository.
```bash
$ npm install git-init
```
```js
const init = require('git-init')
init('./', (err) => {
if (err) throw err
})
```
Create a new git repository at `path`.
[](https://tldrlegal.com/license/mit-license)
[]: https://img.shields.io/npm/v/git-init.svg?style=flat-square
[]: https://npmjs.org/package/git-init
[]: http://img.shields.io/npm/dm/git-init.svg?style=flat-square
[]: https://npmjs.org/package/git-init
[]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
[]: https://github.com/feross/standard