合并不同作者的多个提交,同时在git责任中维护作者的详细信息 [英] Merge multiple commits by different authors while maintaining author details in git blame

查看:254
本文介绍了合并不同作者的多个提交,同时在git责任中维护作者的详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有合并多个不同作者的提交与Git的方法。



因此,每个功能使用一个提交,仍然允许其他人看到每个人编写了哪些代码行。



使用git-flow这样的工具是否有助于这方面的工作?
$ b ie;



分支 NewFeature10




  • 功能界面

  • 功能后端

  • 功能管理

  • 功能AdminBackend



将这些提交压缩并合并到master,以便master遵循

branch master




  • NewFeature10

  • NewFeature9

  • NewFeature8
  • ...

解决方案

提交有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责任中维护作者的详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆