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

后端 未结 5 614
渐次进展
渐次进展 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:53

    I just found this answer https://stackoverflow.com/a/4096529/131227 as well as a comment (git workflow - using one repo as the basis for another) which together lead me to a solution I like.

    git clone -o boilerplate ssh://git@github.com/user/proj.git new_proj
    The -o boilerplate renames the origin to boilerplate which can still be used to pull changes from.

    Create your new empty github new_proj repo. Then
    git remote add origin ssh://git@github.com/user/new_proj.git

提交回复
热议问题