# Storing bitrise.yml and your projects in separate repositories

**URL:** <https://discuss.bitrise.io/t/storing-bitrise-yml-and-your-projects-in-separate-repositories/14544>\
**Category:** Question & Answer\
**Tags:** workflow\
**Created:** [October 12, 2020, 2:46pm UTC](https://discuss.bitrise.io/t/storing-bitrise-yml-and-your-projects-in-separate-repositories/14544 "2020-10-12T14:46:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlos\_torres75](https://avatars.discourse-cdn.com/v4/letter/c/a88e4f/32.png) [@carlos\_torres75](https://discuss.bitrise.io/u/carlos_torres75)\
**Post date:** [October 12, 2020, 2:46pm UTC](https://discuss.bitrise.io/t/storing-bitrise-yml-and-your-projects-in-separate-repositories/14544/1 "2020-10-12T14:46:12Z")

</div>

Hi,

I’m trying to put the Bitrise.yml file in a separate repository. I followed the steps in the documentation but these are not so specific about how should we write the scripts for cloning the second repository and about how starting the workflow with the cloned YML file from the new repo.

This is the documentation I followed:

“You have to set up a simple workflow on Bitrise which contains a `Git Clone Repository` Step and two `Script` Steps. The `Git Clone Repository` Step clones your project’s repo (repo A), the first `Script` Step clones the yml repository (from repo B), and the second `Script` Step starts running the workflow specified in your yml.”  
from -\> ([https://devcenter.bitrise.io/tips-and-tricks/sharing-and-storing-workflows-among-multiple-apps/#storing-bitriseyml-and-your-projects-in-separate-repositories](https://devcenter.bitrise.io/tips-and-tricks/sharing-and-storing-workflows-among-multiple-apps/#storing-bitriseyml-and-your-projects-in-separate-repositories))

Could someone help me with the right way of writing those scripts?

1. For cloning a second repo
2. For running the workflow specified in the yml

Thanks in advance

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [October 29, 2020, 1:39pm UTC](https://discuss.bitrise.io/t/storing-bitrise-yml-and-your-projects-in-separate-repositories/14544/2 "2020-10-29T13:39:21Z")

</div>

Hi @carlos_torres75! I’m not sure I understand correctly, but you can clone a Git repository with `git clone` and pasting the URL of the repository after it, like this:

`git clone https://github.com/owner_name/repo_name`

You might have to authenticate with SSH depending on your git provider / set up. After this, you can use the Bitrise Run step to run a .yml by providing the path to the .yml you just downloaded.

That said, what’s the reason you have to keep separate .ymls in separate repositories?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [November 28, 2020, 1:39pm UTC](https://discuss.bitrise.io/t/storing-bitrise-yml-and-your-projects-in-separate-repositories/14544/3 "2020-11-28T13:39:24Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
