| 1 |
<section class="quickstart" aria-labelledby="qs-title"> |
| 2 |
<h2 id="qs-title">This repository is empty</h2> |
| 3 |
{% if q.can_push %} |
| 4 |
<p>Push to it from any Oxygen checkout. It takes the id of the first repository pushed, so clones made later share it. |
| 5 |
You need a personal access token with <code>repo:write</code>: <a href="/settings/tokens">create one</a> and put it where the commands say <code>YOUR-TOKEN</code>.</p> |
| 6 |
{% if q.ca_url.is_some() %}<p class="small mute">This hub uses a self-signed certificate, so the commands save it and point the remote at it.</p>{% endif %} |
| 7 |
|
| 8 |
<h3>Push an existing checkout</h3> |
| 9 |
{% let cmd = q.connect(repo.clone_url) %} |
| 10 |
<div class="cmds"><pre><code>{{ cmd }}</code></pre><button type="button" class="copy-btn" data-copy="{{ cmd }}" aria-label="Copy to clipboard"></button></div> |
| 11 |
|
| 12 |
<h3>Start from nothing</h3> |
| 13 |
{% let cmd = q.fresh(repo.name) %} |
| 14 |
<div class="cmds"><pre><code>{{ cmd }}</code></pre><button type="button" class="copy-btn" data-copy="{{ cmd }}" aria-label="Copy to clipboard"></button></div> |
| 15 |
<p class="small">Then run the commands above.</p> |
| 16 |
|
| 17 |
<h3>Bring a Git branch</h3> |
| 18 |
{% let cmd = q.git_import(repo.name) %} |
| 19 |
<div class="cmds"><pre><code>{{ cmd }}</code></pre><button type="button" class="copy-btn" data-copy="{{ cmd }}" aria-label="Copy to clipboard"></button></div> |
| 20 |
<p class="small">Then run the commands above. Every Git commit becomes a change.</p> |
| 21 |
|
| 22 |
{% if repo.can(crate::auth::Access::Write) %}<p>Or <a href="{{ repo.url }}/newfile/{{ repo.default_bookmark }}">create the first file</a> in the browser.</p>{% endif %} |
| 23 |
{% else %} |
| 24 |
<p>Nothing has been pushed yet. Watch it to hear when something is.</p> |
| 25 |
{% endif %} |
| 26 |
</section> |