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 réponse
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
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions