1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Git remote helper for hashtree - push/pull git repos via Nostr and hashtree.
```bash
That installs `htree`, `htree-cashu`, and `git-remote-htree` into `~/.local/bin` by default. For a system-wide install, pass a target directory, for example `sh -s -- /usr/local/bin`.
Windows note: this shell bootstrap is not supported on Windows. Download the latest `hashtree-x86_64-pc-windows-msvc.zip` release asset, extract it, and add `htree.exe`, `htree-cashu.exe`, and `git-remote-htree.exe` to your PATH.
Or install with Cargo:
```bash
cargo install hashtree-cli git-remote-htree
```
If you already have `hashtree-cli`, just install the helper:
```bash
cargo install git-remote-htree
```
```bash
git clone htree://npub1.../repo-name
git remote add htree htree://self/myrepo
git push htree master
git remote add origin htree://self/myrepo#link-visible
git push origin main
git clone htree://npub1.../repo#k=<64-hex-chars>
git remote add origin htree://self/myrepo#private
git push origin main
```
For P2P sharing between peers, run the hashtree daemon:
```bash
htree start
```
Git operations automatically use the local daemon when running, enabling direct peer-to-peer transfers via WebRTC.
Keys file: `~/.hashtree/keys`
```
nsec1abc123... default
nsec1xyz789... work
```
Use petnames in remote URLs: `htree://work/myproject`
Part of [hashtree-rs](https://git.iris.to/#/npub1xdhnr9mrv47kkrn95k6cwecearydeh8e895990n3acntwvmgk2dsdeeycm/hashtree).