summary refs log tree commit diff
path: root/git.html
diff options
context:
space:
mode:
Diffstat (limited to 'git.html')
-rw-r--r--git.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/git.html b/git.html new file mode 100644 index 0000000..7a2033b --- /dev/null +++ b/git.html
@@ -0,0 +1,42 @@
1<!doctype html>
2<html lang="en">
3<head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width-device-width, inital-scale=1.0">
6 <title>0druid.cc - git</title>
7 <link rel="stylesheet" href="style.css">
8</head>
9<body>
10 <h1>git.0druid.cc</h1>
11 <p><a href="/">homepage</a>. <a href="/git.html">git</a>.</p>
12 <p>this is my git forge. its invite only, accounts are made by me, and everything is public to clone but only people with accounts can push. if you want an account, <a href="mailto:r.ustydruid520@proton.me">email me</a> with your ssh pubkey.</p>
13 <p>browsing happens at <a href="https://git.0druid.cc/">git.0druid.cc</a>, with the usual stuff: commits, tree, refs, diffs n such.</p>
14 <p>clone over https (read only):</p>
15 <pre>git clone https://git.0druid.cc/druid520/site.git</pre>
16 <p>clone and push over ssh (accounts only):</p>
17 <pre>git clone git:druid520/site.git</pre>
18 <p>accounts get ssh commands too:</p>
19 <pre>ssh git mk &lt;repo&gt;
20ssh git desc &lt;repo&gt; "description"
21ssh git perms &lt;repo&gt; +WRITERS &lt;user&gt;
22ssh git ls</pre>
23 <p>put this in ~/.ssh/config:</p>
24 <pre>Host serv
25 HostName 0druid.cc
26 User root
27 Port 3447
28 IdentityFile ~/.ssh/serv
29 ProxyCommand sh -c "nc -z -w 1 %h 47910; exec nc %h %p"
30
31Host git
32 HostName git.0druid.cc
33 User git
34 Port 3447
35 IdentityFile ~/.ssh/druid
36 ProxyCommand sh -c "nc -z -w 1 %h 47910; exec nc %h %p"</pre>
37 <p>the serv host is the server itself, it knocks a secret port before ssh answers so scanners see nothing. the git host is the same machine, same deal.</p>
38 <p>profiles: push a repo named the same as your username (like druid520/druid520) with a profile.png and a readme.djot in it, first line like this:</p>
39 <pre>{desc="hi" location="somewhere" work="stuff"}</pre>
40 <p>and the rest of the file is your page.</p>
41</body>
42</html>