问题描述
是否有合并多个不同作者的提交与Git的方法。
因此,每个功能使用一个提交,仍然允许其他人看到每个人编写了哪些代码行。
使用git-flow这样的工具是否有助于这方面的工作?
$ b ie;
分支 NewFeature10
- 功能界面
- 功能后端
- 功能管理
- 功能AdminBackend
将这些提交压缩并合并到master,以便master遵循
branch master
提交有1个且只有1个作者。您可以实现的最佳效果是N次提交FeatureX,其中N是处理该功能的唯一作者数。
Is there a way to merge several commits by different authors with Git.
So that a commit is used per feature that still allows others to see who wrote the each line of code.
Will using a tool like git-flow help facilitate this ?
ie;
branch NewFeature10
- feature UI
- feature Backend
- feature Admin
- feature AdminBackend
squash and merge these commits to master so master follows
branch master
- NewFeature10
- NewFeature9
- NewFeature8
- ...
A commit has 1 and only 1 author. The best you could achieve would be N commits for FeatureX, where N is the number of unique authors that worked on that feature.
这篇关于合并不同作者的多个提交,同时在git责任中维护作者的详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!