You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

single_bare.tmpl 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. {{template "repo/nav" .}}
  4. {{template "repo/toolbar" .}}
  5. <div id="body" class="container">
  6. <div id="source">
  7. <div class="panel panel-default guide-box clone-group-btn">
  8. <div class="panel-heading guide-head">
  9. <h4>Quick Guide</h4>
  10. </div>
  11. <div class="panel-body guide-content text-center">
  12. <h3>Clone this repository</h3>
  13. <div class="input-group col-md-8 col-md-offset-2 guide-buttons">
  14. <span class="input-group-btn">
  15. <button class="btn btn-default" data-link="{{.CloneLink.SSH}}" type="button">SSH</button>
  16. <button class="btn btn-default" data-link="{{.CloneLink.HTTPS}}" type="button">HTTPS</button>
  17. </span>
  18. <input type="text" class="form-control clone-group-url" id="guide-clone-url" value="" readonly/>
  19. <span class="input-group-btn">
  20. <button class="btn btn-default" type="button" data-toggle="tooltip" title="copy to clipboard" data-placement="top" data-init="copy" data-copy-val="val" data-copy-from="#guide-clone-url"><i class="fa fa-copy"></i></button>
  21. </span>
  22. </div>
  23. <p>We recommend every repository include a <strong>README</strong>, <strong>LICENSE</strong>, and <strong>.gitignore</strong>.</p>
  24. <hr/>
  25. <h3>Create a new repository on the command line</h3>
  26. <pre class="text-left"><code>touch README.md
  27. git init
  28. git add README.md
  29. git commit -m "first commit"
  30. git remote add origin <span class="clone-url"></span>
  31. git push -u origin master</code></pre>
  32. <hr/>
  33. <h3>Push an existing repository from the command line</h3>
  34. <pre class="text-left"><code>git remote add origin <span class="clone-url"></span>
  35. git push -u origin master</code></pre>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. {{template "base/footer" .}}