1

We have two repositories, 1. source repository 2. target repository When a commit comes in the source repository, I need to change the author name and author email then push to the target repository.

I have tried the solution from this link but it seems to alter all the commits. I just need to change the latest ones only.

In the target repository, I need the commits with changed author name and email. After a particular commit reference.

Liju Kuriakose
  • 445
  • 3
  • 11

1 Answers1

0

The filter-branch on the page you linked should work just fine, all you need to do is specify a range of commits, see Running filter-branch over a range of commits

git filter-branch --env-filter '...' SHA1..HEAD
ikkentim
  • 1,639
  • 15
  • 30