Skip to content

Subtree

Eric Bouchut edited this page Apr 11, 2021 · 16 revisions

Put a folder in a Separate Branch

Split the client/ folder in a client branch. Assuming you first have a monorepo (single repository) containing both the back-end (server) and front-end (client) code. You want to extract the client code in another branch.

git subtree split --prefix=client -b client

The next will be to push this branch to another repository.

Clone this wiki locally