I want to push changes automatically into my all local cloned reposoitories whenever I update my code in codecommit main repo.

0

I want to push all latest changes in my codecommit master branch to automatically update my all locally cloned repositories. I used codecommit lambda trigger but its giving errors and I was unable to do that. if this process is possible through lambda then provide Lambda code and if any other method can work then provide me that method.

1 Resposta
0

Git uses a "pull" model for updating local repositories. I'm not aware of any way to push changes from a central repository out to other repositories that use it as an "origin", and doing so could potentially overwrite local changes devs have made.

Can you explain more about the reason you want automatic updates of local repositories? Perhaps understanding your larger goal will reveal some other options for achieving it.

profile pictureAWS
Kris
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas