Merge multiple commits by different authors while maintaining author details in git blame

空扰寡人 提交于 2019-12-12 04:46:50

问题


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
  • ...

回答1:


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.



来源:https://stackoverflow.com/questions/25796856/merge-multiple-commits-by-different-authors-while-maintaining-author-details-in

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!