| |   |
| 1 | 1 | <ul class="infobox"> |
| <li> |
| <strong>Public clone url:</strong> <code><%=h @repository.clone_url -%></code> |
| <small><%= link_to_function "More info…", "$('detailed_clone_info').toggle()" -%></small> |
| <div id="detailed_clone_info" class="info_hint" style="display:none"> |
| You can clone this repository with the following command:<br /> |
| <code>git clone <%= @repository.clone_url -%></code> |
| </div> |
| </li> |
| <li> |
| <strong>HTTP clone url:</strong> <code><%=h @repository.http_clone_url -%></code> |
| <small><%= link_to_function "More info…", "$('detailed_http_clone_info').toggle()" -%></small> |
| <div id="detailed_http_clone_info" class="info_hint" style="display:none"> |
| You can clone this repository with the following command:<br /> |
| <code>git clone <%= @repository.http_clone_url -%></code><br /> |
| <small>(note that cloning over HTTP is slightly slower, but useful |
| if you're behind a firewall)</small> |
| </div> |
| </li> |
| <li><strong>Project:</strong> <%= link_to h(@repository.project.title), @repository.project -%></li> |
| <li><strong>Owner:</strong> <%= link_to h(@repository.user.login), user_path(@repository.user) -%></li> |
| <% if @repository.parent -%> |
| <li><strong>Clone of:</strong> |
| <%= link_to h(@repository.parent.gitdir), project_repository_path(@project, @repository.parent) -%> |
| <% end -%> |
| <li><strong>Created:</strong> <%= @repository.created_at.to_s(:short) -%></li> |
| 20 | 9 | <% if logged_in? && current_user.can_write_to?(@repository) -%> |
| 21 | 10 | <li> |
| <strong>Push url:</strong> <code><%=h @repository.push_url -%></code> |
| <strong>URL:</strong> <code><%=h @repository.push_url -%></code> |
| 23 | 12 | <small><%= link_to_function "More info…", "$('detailed_push_info').toggle()" -%></small> |
| 24 | 13 | <div id="detailed_push_info" class="info_hint" style="display:none"> |
| You can run "<code>git push <%= @repository.push_url %></code>", or |
| You can run "<code>git push <%= @repository.push_url %></code>", or |
| 26 | 15 | you can setup a remote by doing the following: |
| 27 | 16 | <pre> |
| 28 | 17 | git remote add origin <%= @repository.push_url %> |
| 29 | 18 | # to push the master branch to the origin remote we added above: |
| git push origin master |
| git push origin master |
| 31 | 20 | # after that you can just do: |
| 32 | 21 | git push |
| 33 | 22 | </pre> |