https://github.com/sinchang/the-first-commit
get the repo first commit information
https://github.com/sinchang/the-first-commit
first-commit git
Last synced: 2 months ago
JSON representation
get the repo first commit information
- Host: GitHub
- URL: https://github.com/sinchang/the-first-commit
- Owner: sinchang
- License: mit
- Created: 2018-01-30T03:17:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-22T14:46:16.000Z (almost 8 years ago)
- Last Synced: 2025-10-04T07:29:54.080Z (3 months ago)
- Topics: first-commit, git
- Language: JavaScript
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# the-first-commit
[](https://greenkeeper.io/)
[](https://npmjs.com/package/the-first-commit) [](https://npmjs.com/package/the-first-commit) [](https://circleci.com/gh/sinchang/the-first-commit/tree/master) [](https://codecov.io/gh/sinchang/the-first-commit)
## Install
```bash
yarn add the-first-commit
```
## Usage
```js
const theFirstCommit = require('the-first-commit')
// cwd is the git repository path, if empty use current dir.
theFirstCommit(cwd)
result:
{
hash: 'bdeb253d1679effeb028a813ef870a612ba91555',
short: 'bdeb253',
author: 'sinchang',
email: 'sinchangwen@gmail.com',
date: 'Sun Dec 31 23:37:17 2017 +0800',
message: 'chore: init project'
}
```
## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
## Author
**the-first-commit** © [sinchang](https://github.com/sinchang), Released under the [MIT](./LICENSE) License.
Authored and maintained by sinchang with help from contributors ([list](https://github.com/sinchang/the-first-commit/contributors)).
> [sinchang.me](https://sinchang.me) · GitHub [@sinchang](https://github.com/sinchang) · Twitter [@sinchangwen](https://twitter.com/sinchangwen)