# How to Link Repositories to Warehouses



<blockquote class="announcement">
  <div class="tip-quote">
    
    <div class="tip-text"><strong>Rudder Lookout</strong> is currently in <strong>Public Beta</strong>. <a href="mailto:product@rudderstack.com" >Contact the Product team</a> if you have any questions.</div>
  </div>
</blockquote>

<p>Your warehouse holds the data. Your repositories hold the code that produces it. Linking a repository to a warehouse tells Lookout which code describes which data, so the agent can move between a number in your warehouse and the analytics calls that produced it.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="prerequisites">Prerequisites</h2><ul>
<li><a href="https://www.rudderstack.com/docs/activate/lookout/integrations/warehouses/" >Connect a warehouse</a></li>
<li><a href="https://www.rudderstack.com/docs/activate/lookout/integrations/github/" >Connect GitHub</a> and grant access to the repository you want to link</li>
</ul>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="link-a-repository-to-a-warehouse">Link a repository to a warehouse</h2><p>From <strong>Settings</strong> &gt; <strong>Connections</strong> &gt; <strong>Warehouses</strong>, link each repository to the warehouse it belongs to so Lookout knows which repository describes which data.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="what-the-link-gives-you">What the link gives you</h2><p>With the link in place, the agent can move between a number in your warehouse and the code that produced it. Asked what <code>checkout_started</code> actually captures, it can find the warehouse the event lands in, look up the repository linked to it, and read the analytics calls.</p>
<p>It also tells Lookout which repository to re-read when a push lands, so the generated documentation in the <a href="https://www.rudderstack.com/docs/activate/lookout/working-with-lookout/context-hub/" >Context Hub</a> stays current.</p>
<br />

