Expand my Community achievements bar.

SOLVED

Adobe Cloud Git - Customer Git

Avatar

Level 4
Level 4

Hi All, 

Is it okay to creat a branch in the Cloud Git and subsequently merge that branch into the Client Git? If this is feasible, what steps are required to achieve this?

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Recommended practise is to create any new branch in client git first and then push it to Cloud git. You can use Jenkin job to sync code between repos- [0]. You can do it reverse as well but that is not a good practise since client git should be first source of truth and active place of development. For code synching between repos, you can explore webhooks/ mirroring features as well -[1]. 

 

[0]- https://aem6solutions.blogspot.com/2022/07/jenkins-git-cvs-syncing-pushing-branch.html

[1]- https://jsramblings.com/automatically-sync-gitlab-mirrored-repository-on-every-push-to-github/ 

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Recommended practise is to create any new branch in client git first and then push it to Cloud git. You can use Jenkin job to sync code between repos- [0]. You can do it reverse as well but that is not a good practise since client git should be first source of truth and active place of development. For code synching between repos, you can explore webhooks/ mirroring features as well -[1]. 

 

[0]- https://aem6solutions.blogspot.com/2022/07/jenkins-git-cvs-syncing-pushing-branch.html

[1]- https://jsramblings.com/automatically-sync-gitlab-mirrored-repository-on-every-push-to-github/