u/Mother-Pear7629

How do I preserve original commit authors when merging PRs on GitHub?
▲ 2 r/git+1 crossposts

How do I preserve original commit authors when merging PRs on GitHub?

Hey everyone,

I’m maintaining a repository on Github https://github.com/open-ug/conveyor and ran into something that’s been bothering me.

Whenever contributors open a pull request and I merge it, the commits end up showing as if I’m the one who made them, even though they clearly belong to the contributor. I want to make sure people get proper credit for their work, but right now the history/UI feels misleading.

I suspect it might be related to how I’m merging (maybe squash or rebase?), but I’m not entirely sure what’s causing it or what the best practice is here.

So I have a few questions:

  • What merge strategy should I be using to preserve original authorship?
  • Is there a way to fix this behavior in repo settings?
  • If squash merging is preferred, how do you handle proper attribution?

Would really appreciate any guidance or best practices from people who’ve dealt with this before.

Thanks!

u/Mother-Pear7629 — 1 day ago