Skip to content

How to join worktree locally into monorepo #1417

@thkoch2001

Description

@thkoch2001

I've got a monorepo (tvl.fyi), cloned sparsely.

The monorepo contains an imported project at web/planet-mars.

I filtered this project with josh:

josh-filter :web/planet-mars

and put it in a separate worktree:

git worktree add ../planet-mars FILTERED_HEAD

Made a commit and want to get the commit back into the monorepo in the main worktree:

josh-filter :join(f299c40b882a03b07f0411154b15d4b767aa7dde:prefix=web/planet-mars)  canon

I canceled the last command after 10 minutes. The sha-1 is the commit I created and canon is the HEAD of the monorepo.

Thanks for any pointers.

My idea is, that the above workflow would allow me to push via ssh and avoid http credentials which would be needed for the josh proxy. See also #22.

The planet mars project was previously imported with josh: https://code.tvl.fyi/commit/web/planet-mars?id=0a83e6567b4c8ef342890bbc549332767a5d6bf1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions