Skip to content

Commit 810710d

Browse files
committed
fixed install command
1 parent a61e8bf commit 810710d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@
44
This package gets info about your git repo (*long hash* + *short hash* + *branch*) and stores this data in your `package.json`.
55

66
### Why?
7-
I faced next issue:
7+
I faced next issue:
88
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.
99
This module solves my issue.
1010

1111
### Install
1212
```bash
13-
npm i git-hash-package
13+
npm i git+https://github.com/axi92/git-hash-package.git
1414
```
15+
You can run it local with `npx git-hash-package`
1516

1617
Or if you want to run it globally(Thanks to [@teebu](https://github.com/teebu) and his awesome PR):
1718

1819
```
19-
npm i -g git-hash-package
20+
npm i -g git+https://github.com/axi92/git-hash-package.git
2021
```
2122

2223
### Usage

0 commit comments

Comments
 (0)