Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git update mirror without affecting new branches

Tags:

git

gerrit

  1. git clone --mirror https://original/repo.git
  2. git remote add gerrit ssh://mirror/path
  3. git push gerrit --all
  4. cloned the mirrored repo

    $git clone ssh://mirror/path

I have created new-dev branch in mirrored repo and working on new-dev branch and pushing the changes to "ssh://mirror/path" on same new-dev branch

mean while I have observed that some of the branches in https://original/repo.git are updated. How to mirror those changes again to same "ssh://mirror/path" without affecting new-dev branch

like image 212
dasariarun Avatar asked Apr 10 '26 04:04

dasariarun


1 Answers

I know this is an old question, but I was having a similar issue and I think this is how to do it: https://github.com/repo-sync/repo-sync

This can be added the github actions, or you can explore the source code and see how they do it and do it yourself manually.

like image 198
tgonzalez89 Avatar answered Apr 12 '26 19:04

tgonzalez89