Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to split up a monorepo and hoping to use grit #1

Open
patrickleet opened this issue May 31, 2019 · 0 comments
Open

Trying to split up a monorepo and hoping to use grit #1

patrickleet opened this issue May 31, 2019 · 0 comments

Comments

@patrickleet
Copy link

This looks like to be exactly the type of tool I need, however, I'm getting some errors using it.

The monorepo has many projects, and has been developed since 2017.

I want to move each of those projects into separate repos, while still maintaining the monorepo for legacy CI purposes.

We will call the monorepo, repoA

I tried creating a new repo for just one of the projects to start with:

First I tried splitting it out initially using:

git filter-branch --prune-empty --subdirectory-filter project/app  master

into a new repo, repoB

https://help.github.com/en/articles/splitting-a-subfolder-out-into-a-new-repository

But when I try to sync with grit from A to B, I get errors that the files already exist.

error: .editorconfig: already exists in index

etc.

So I tried an empty repo - error: master branch not found.

So I added a file that didn't exist to it, and then tried syncing from A to B, this time got a different error - it copied commits from 2017 through July 2018, and then fails at one of them.

Any suggestions on best practices for getting initial sync going?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant