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 Answer
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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions