本文介绍了从现有的“样板”创建新项目回购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Laravel样板文件项目,其中包含我常用的功能/库。

使用此样板作为基础的正确git过程是什么新项目?我可以想到两个选择:


  1. 分叉样板到 newproject 并开始。我不打算将 newproject 更改回<样板文件。

  2. 克隆样板文件并将远程原点更新为新的干净回购。

我倾向于第二种选择,因为它感觉像是一个很好的清晰的代码样板。我会因为这样做而失去任何酷酷的git可能性吗?

样板文件 GitHub项目中的一个模板,我会:


I've created a Laravel "boilerplate" project which contains my commonly used features/libraries.

What's the correct git process for utilising this boilerplate as a basis for new projects? I can think of two options:

  1. Fork boilerplate to newproject and begin. I don't have any intention of pulling newproject changes back into boilerplate.
  2. Clone boilerplate and update the remote origin to a new clean repo.

I'm leaning towards the 2nd option, as it feels like a nice clean split from the boilerplate code. Will I be losing any cool git possibilities by doing this?

解决方案

Considering you will be storing your project on Github from one of the templates included in boilerplate GitHub project, I would:

这篇关于从现有的“样板”创建新项目回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 15:49