Commit 3b1de66c authored by Gabriel Mazetto's avatar Gabriel Mazetto

💄Improved Geo clone instructions

parent 2d6f2e4c
......@@ -26,11 +26,14 @@
<h3>{{title}}</h3>
</div>
<div class="modal-body">
<p><strong>Step1.</strong> Clone the repository and define <strong>primary's node</strong> repository URL as target to push code:</p>
<slot name="clipboard"></slot>
<pre class="dark" id="geo-info">git clone {{cloneUrlSecondary}}
git remote set-url --push origin {{cloneUrlPrimary | emptyRepo}}</pre>
<p><strong>Step2.</strong> Commit and push code as you normally do, but with increased speed.</p>
<p><strong>Step1.</strong> Clone the repository from your secondary node:</p>
<slot name="clipboard-1"></slot>
<pre class="dark" id="geo-info-1">git clone {{cloneUrlSecondary}}</pre>
<p><strong>Step2.</strong> In your repository's directory define <strong>primary's node</strong> repository URL as target to <strong>push</strong> code:</p>
<slot name="clipboard-2"></slot>
<pre class="dark" id="geo-info-2">git remote set-url --push origin {{cloneUrlPrimary | emptyRepo}}</pre>
<p><strong>Done.</strong> You can now commit and push code as you normally do, but with increased speed.</p>
</div>
</div>
</div>
......
#geo_clone{data: {'clone-url-secondary': h(default_url_to_repo(project)), 'clone-url-primary': h(geo_primary_default_url_to_repo(project))}}
%geo-clone-dialog{id: 'modal_geo_info', title: 'How to work faster with Geo'}
%span{slot: 'clipboard'}
= clipboard_button(clipboard_target: 'pre#geo-info')
%span{slot: 'clipboard-1'}
= clipboard_button(clipboard_target: 'pre#geo-info-1')
%span{slot: 'clipboard-2'}
= clipboard_button(clipboard_target: 'pre#geo-info-2')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment