Skip to content

Commit 43f3d48

Browse files
gaschehpjansson
authored andcommitted
README: add 'Git cloning tips'
(See discussion in #13)
1 parent 525c66e commit 43f3d48

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,17 @@ Guide to arguments:
8383
--to year
8484
Optional. Last year to plot.
8585
```
86+
87+
88+
## Git cloning tips
89+
90+
We support ingestion from both bare and non-bare repositories:
91+
92+
git clone https://git.example.com
93+
git clone --bare https://git.example.com
94+
95+
Another option that can massively reduce data transfer is `--filter=blob:none`, which will only clone commit metadata, not the files themselves.
96+
97+
git clone --bare --filter=blob:none https://git.example.com
98+
99+
Note that this is not supported by all git servers (cloning may fail). Using this mode also prevents the use of the `--unit changes` option (counting the number of changed lines), or in general inspecting `--stat` output from the commit database.

0 commit comments

Comments
 (0)