Git Product home page Git Product logo

grit's Issues

Trying to split up a monorepo and hoping to use grit

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.