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 回答
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
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则