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
Copy file name to clipboardExpand all lines: README.md
+23-9Lines changed: 23 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,21 +15,29 @@
15
15
16
16
## Introduction
17
17
18
-
The purpose of this package is to extract some git related information (all files sha, also commits sha) from your hosted source version control system
18
+
The purpose of `src-fingerprint`is to provide an easy way to extract git related information (namely all files sha of a repository) from your hosted source version control system.
19
19
20
-
It supports 3 main on premise version control service:
20
+
This util supports 3 main version control systems:
21
21
22
-
- GitHub Enterprise
22
+
- GitHub and GitHub Enterprise
23
23
- Gitlab CE and EE
24
24
- Bitbucket
25
25
26
26
## Install
27
27
28
28
### Pre-compiled executables
29
29
30
-
Get them[here](http://github.com/gitguardian/src-fingerprint/releases).
30
+
Get the executables[here](http://github.com/gitguardian/src-fingerprint/releases).
31
31
32
-
### Source
32
+
### Using Homebrew
33
+
34
+
If you're using [Homebrew](https://brew.sh/index_fr) you can add GitGuardian's tap and then install src-fingerprint. Just run the following commands :
35
+
```shell
36
+
brew tap gitguardian/tap
37
+
brew install src-fingerprint
38
+
```
39
+
40
+
### From the sources
33
41
34
42
You need `go` installed and `GOBIN` in your `PATH`. Once that is done, run the
35
43
command:
@@ -58,26 +66,32 @@ $ go get -u github.com/gitguardian/src-fingerprint/cmd/src-fingerprint
58
66
59
67
## Compute my fileshas
60
68
69
+
### General information
70
+
The output format can be chosen between `jsonl`, `json`, `gzip-jsonl` and `gzip-json` with the option `--export-format`.
71
+
The default format is `jsonl`, but if you want to minimize the size of the output file choose `gzip-jsonl`.
72
+
Also, note that if you were to download fileshas for repositories of a big organization, `src-fingerprint` has a limit to process no more than 100
73
+
repositories. You can override this limit with the option `--limit`, a limit of 0 will process all repos of the organization.
74
+
61
75
### GitHub
62
76
63
77
1. Export all file SHAs from a GitHub Org with private repositories to a file with logs:
0 commit comments