0

I have 2 git repos repo1 and repo2. I am working on repo1 and sometimes I have to commit the same stuff on both repos. I would like to avoid coppying files to other project and do commit again same thing.

How can I just cherrypick my commit on repo1 into repo2?

Antonio Petricca
  • 8,891
  • 5
  • 36
  • 74
Ronald
  • 2,721
  • 8
  • 33
  • 44
  • 1
    Use git format-patch / git am on their respective sides, or combine the cherry-pick source repository into the destination one temporarily (using git fetch for example) and do git cherry-pick. Not sure if it's possible to "commit into two repositories" at once. – terrorrussia-keeps-killing Sep 09 '21 at 08:05
  • I solved here https://stackoverflow.com/a/68983860/418599 the same issue. – Antonio Petricca Sep 09 '21 at 09:13

0 Answers0