What is the proper git workflow for basing a project off a 'seed' repo?

后端 未结 5 655
渐次进展
渐次进展 2020-12-25 14:03

As an example: suppose you have a personal project like Angular Seed (which is a starting point for an Angular project https://github.com/angular/angular-seed).

Now

5条回答
  •  感动是毒
    2020-12-25 14:37

    I found mirroring the boilerplate according to this article the only way to work for me:

    Clone boilerplate and create new project:

    git clone --mirror https://github.com/mxstbr/react-boilerplate.git
    cd react-boilerplate.git
    git remote set-url --push origin https://github.com/gitUser/newProject
    

    Update the new project with changes from the boilerplate:

    cd react-boilerplate.git
    git fetch -p origin
    git push --mirror
    

提交回复
热议问题