You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 2, 2025. It is now read-only.
This package gets info about your git repo (*long hash* + *short hash* + *branch*) and stores this data in your `package.json`.
5
+
6
+
### Why?
7
+
I faced next issue:
8
+
If we can't use `git log` inside Docker container in git subrepo in production, we need to store info about git in local files. Storing info about the current git state in `package.json` was a good decision.
9
+
This module solves my issue.
10
+
3
11
### Install
12
+
```bash
13
+
npm i git-hash-package
14
+
```
15
+
16
+
Or if you want to run it globally(I haven't tested it yet):
17
+
18
+
```
19
+
npm i -g git-hash-package
20
+
```
4
21
5
22
### Usage
23
+
```bash
24
+
git-hash-package # run
25
+
git-hash-package --verbose # run with verbose output about current git state (short + long hashes + branch)
0 commit comments