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.

30 lines
1.6 KiB

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