doc: how to update a subtree

This commit is contained in:
Sjors Provoost 2025-10-07 20:13:52 +02:00
parent 919e6d01e9
commit 3a2f50a75b
No known key found for this signature in database
GPG Key ID: 57FF9BDBCC301009
1 changed files with 13 additions and 0 deletions

View File

@ -1119,6 +1119,19 @@ to check a subtree directory for consistency with its upstream repository.
The tool instructions also include a list of the subtrees managed by Bitcoin Core.
To fully verify or update a subtree, add it as a remote:
```sh
git remote add --fetch libmultiprocess https://github.com/bitcoin-core/libmultiprocess.git
```
To update the subtree:
```sh
git fetch libmultiprocess
git subtree pull --prefix=src/ipc/libmultiprocess libmultiprocess master --squash
```
The ultimate upstream of the few externally managed subtrees are:
- src/leveldb