Hash :
de7c675e
Author :
Thomas de Grivel
Date :
2022-12-31T19:47:14
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
<div class="container-fluid">
<div class="row">
<div class="col">
<p>
<code>
"<%= gettext "Hello, world !" %>"
</code>
</p>
<p>
<%= gettext "Welcome to this instance of" %>
<%= link "kmxgit", to: "https://git.kmx.io/kmx.io/kmxgit" %>
.
</p>
<p>
<%= gettext "Anyone can register and create public and private Git repositories." %>
</p>
<%= if @discord do %>
<p>
<%= link to: @discord, class: "btn btn-primary" do %>
<i class="fab fa-discord"></i> <%= gettext "Join us on Discord !" %>
<% end %>
</p>
<% end %>
<h3><%= gettext("Security") %></h3>
<p>
<ul class="list-group">
<li class="list-group-item bg-h">
<h5><%= link gettext("SSH keys fingerprint"), to: "#ssh-keys", id: "ssh-keys" %></h5>
</li>
<li class="list-group-item bg-dark">
<pre class="wrap"><%= render("ssh_keys_fingerprint.txt") %></pre>
</li>
</ul>
</p>
<h3><%= link gettext("Help"), to: "#help", id: "help" %></h3>
<p>
<%= link gettext("Install git"), to: Routes.page_path(@conn, :doc_git_install) %>
</p>
<p>
<ul class="list-group">
<li class="list-group-item bg-h">
<%= gettext "Clone repository user/path/to/repo if repo does not exist" %> :
</li>
<li class="list-group-item bg-dark">
<pre><code class="language-sh">git clone <b><%= @git_ssh_url %>:user/path/to/repo.git</b>
cd <b>repo</b></code></pre>
</li>
</ul>
</p>
<p>
<ul class="list-group">
<li class="list-group-item bg-h">
<%= gettext "Change branch" %> :
</li>
<li class="list-group-item bg-dark">
<pre><code class="language-sh">git branch <b>master</b></code></pre>
</li>
</ul>
</p>
<p>
<ul class="list-group">
<li class="list-group-item bg-h">
<%= gettext "Pull changes from remote" %> :
</li>
<li class="list-group-item bg-dark">
<pre><code class="language-sh">git pull</code></pre>
</li>
</ul>
</p>
<p>
<ul class="list-group">
<li class="list-group-item bg-h">
<%= gettext "Add local changes to next commit" %> :
</li>
<li class="list-group-item bg-dark">
<pre><code class="language-sh">git add <b>README.md static/index.html</b></code></pre>
</li>
</ul>
</p>
<p>
<ul class="list-group">
<li class="list-group-item bg-h">
<%= gettext "Commit" %> :
</li>
<li class="list-group-item bg-dark">
<pre><code class="language-sh">git commit -m "<b>a short and descriptive message</b>"</code></pre>
</li>
</ul>
</p>
<p>
<ul class="list-group">
<li class="list-group-item bg-h">
<%= gettext "Push changes to remote" %> :
</li>
<li class="list-group-item bg-dark">
<pre><code class="language-sh">git push</code></pre>
</li>
</ul>
</p>
<p>
<ul class="list-group">
<li class="list-group-item bg-h">
<%= gettext "Or if your local repo already exists, add remote to existing repo." %> :
</li>
<li class="list-group-item bg-dark">
<pre><code class="language-sh">git remote add kmx <b><%= @git_ssh_url %>:user/path/to/repo.git</b></code></pre>
</li>
</ul>
</p>
<p>
<ul class="list-group">
<li class="list-group-item bg-h">
<%= gettext "Push to new remote" %> :
</li>
<li class="list-group-item bg-dark">
<pre><code class="language-sh">git push -u kmx master</code></pre>
</li>
</ul>
</p>
<p>
<%= gettext("Get the git url at") %> <b><%= Routes.page_url(@conn, :index) %>user/path/to/repo</b>
</p>
<h4><%= link gettext("Links"), to: "#links", id: "links" %></h4>
<p>
<%= gettext("If you need more help with git, please see :") %>
<ul>
<li><a href="https://git-scm.com/doc"><%= gettext("the official git documentation") %></a></li>
<li><a href="https://stackoverflow.com/questions/tagged/git"><%= gettext("StackOverflow about git") %></a></li>
</ul>
</p>
<div class="row">
<div class="col col-12 col-md-5">
<p>
<ul class="list-group">
<li class="list-group-item bg-h">
<h3><%= link gettext("Stats"), to: "#stats", id: "stats" %></h3>
</li>
<li class="list-group-item">
<table class="table">
<tr>
<th><%= gettext "Users" %></th>
<td><%= @user_count %></td>
</tr>
<tr>
<th><%= gettext "Organisations" %></th>
<td><%= @org_count %></td>
</tr>
<tr>
<th><%= gettext "Repositories" %></th>
<td><%= @repo_count %></td>
</tr>
</table>
</li>
</ul>
</p>
</div>
</div>
</div>
</div>
</div>