<p>Don't know if you have found an answer already, but yes, it is possible.</p>
<p>there are many possible solutions here for the automation tools, but one of the obvious is to create automation code that updates your repositories as needed (for example by using terraform with git provider) and then running this terraform code in bitbucket pipeline on your boilerplate repo.</p>
<p>At this simple scenario - you need to get a list of all repositories that you need to update in some way, by reading it from some file/api or anything else.</p>

CC BY-SA 4.0
2022-11-09T07:36:46.047Z
2022-11-09T07:36:46.047Z
Tata
<p>So this is the scenario i have right now, we have a repo (boilerplate) that contains our infrastructure code, docker files, and pipeline scripts, each time we create a new project we copy this repo to a new repo.</p>
<p>the issue is this when we make a change in the boilerplate repo, we have to manually make the change in all our projects and i'd like to automate this process.</p>
<p>is it possible to create a git hook or a bitbucket pipeline to automate this process.</p>

<git><bitbucket><bitbucket-pipelines><git-hooks>
bitbucket pipeline to push commits to another repo
Abdelrhman Mostafa
# bitbucket pipeline to push commits to another repo

(Asked by: username_0 on 2022-06-04)

So this is the scenario i have right now, we have a repo (boilerplate) that contains our infrastructure code, docker files, and pipeline scripts, each time we create a new project we copy this repo to a new repo.

the issue is this when we make a change in the boilerplate repo, we have to manually make the change in all our projects and i'd like to automate this process.

is it possible to create a git hook or a bitbucket pipeline to automate this process.

**Tags:** git, bitbucket, bitbucket-pipelines, git-hooks


---

## 1 answers

### Answer by username_1 on 2022-11-09. Score: 1

Don't know if you have found an answer already, but yes, it is possible.

there are many possible solutions here for the automation tools, but one of the obvious is to create automation code that updates your repositories as needed (for example by using terraform with git provider) and then running this terraform code in bitbucket pipeline on your boilerplate repo.

At this simple scenario - you need to get a list of all repositories that you need to update in some way, by reading it from some file/api or anything else.


---

