README.md + notes on manual git subtree stuff
This commit is contained in:
parent
4dd0deba1a
commit
c62785b03e
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
|
@ -282,3 +282,15 @@ $ git fetch xo-foo main
|
|||
```
|
||||
$ git subtree add --prefix=xo-foo xo-foo main
|
||||
```
|
||||
|
||||
## Manual git subtree workflow
|
||||
|
||||
walk repo history (slow!), extracting all commits that touched prefix (e.g. `xo-foo`),
|
||||
synthesize a standalone commit history as if `xo-foo` were its own repo
|
||||
(i.e. strip prefix from all paths).
|
||||
|
||||
With `-b _demux/xo-foo` stores thhat tip as local branch
|
||||
|
||||
```
|
||||
$ git subtree split --prefix=xo-foo -b _demux/xo-foo --rejoin
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue