tilde/blog/tag_git.html

107 lines
5.2 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="manifest" href="/manifest.json">
<meta name="theme-color" content="#00cc00">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-310x310.png">
<link rel="icon" type="image/png" sizes="192x192" href="/apple-touch-icon-precomposed.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
<link rel="stylesheet" href="/css/hacker.css">
<link rel="stylesheet" href="extra.css">
<link rel="alternate" type="application/rss+xml" title="Subscribe to this page..." href="feed.rss" />
<title>blog // ~ben &mdash; Posts tagged "git"</title>
<meta name='twitter:card' content='summary' />
<meta name='twitter:site' content='@nebsirrah' />
<meta name='twitter:title' content='blog // ~ben &mdash; Posts tagged "git"' />
<meta name='twitter:description' content=" tildeverse.org July 15, 2018 &mdash; ~ben since the last time i wrote a post here, i've registered the tildeverse.org domain and started moving some services over that were already intended for tildeverse use. among those are gitea and the ne" />
</head><body>
<div class="container">
<div id="divbodyholder">
<div class="headerholder"><div class="header">
<div id="title">
<h1 class="nomargin"><a class="ablack" href="https://tilde.team/~ben/blog/index.html">blog // ~ben</a></h1>
<div id="description">a blog about tildes and other things</div>
</div></div></div>
<div id="divbody"><div class="content">
<h3><a class="ablack" href="tildeverseorg.html">
tildeverse.org
</a></h3>
<!-- bashblog_timestamp: #201807152309.22# -->
<div class="subtitle">July 15, 2018 &mdash;
~ben
</div>
<!-- text begin -->
<p>since the last time i wrote a post here, i've registered the tildeverse.org domain and started moving some services over that were already intended for tildeverse use.</p>
<p>among those are <a href="https://git.tildeverse.org">gitea</a> and <a href="https://links.tildeverse.org">the new link aggregator</a> (which runs the same source as <a href="https://github.com/lobsters/lobsters">lobste.rs</a>).</p>
<p>i've also started a phlog in my <a href="https://gopher.tilde.team/tilde.team/~ben">gopherhole</a> with <a href="/~tomasino">~tomasino's</a> new <a href="https://github.com/jamestomasino/burrow">burrow</a> gopherhole tool!</p>
<p>i'll try to post a bit more often too with updates from the tildeverse!</p>
<p>Tags: <a href='tag_tilde.html'>tilde</a>, <a href='tag_internet.html'>internet</a>, <a href='tag_links.html'>links</a>, <a href='tag_git.html'>git</a></p>
<!-- text end -->
<p id='twitter'><a href='http://twitter.com/intent/tweet?url=https://tilde.team/~ben/blog/tildeverseorg.html&text=&lt;Type your comment here but please leave the URL so that other people can follow the comments&gt;&via=nebsirrah'>Comments? Tweet</a>
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/tildeverseorg.html'><span id='count-20950'></span></a>&nbsp;</p>
<h3><a class="ablack" href="git-remotes-with-ssh-aliases.html">
git remotes with ssh aliases
</a></h3>
<!-- bashblog_timestamp: #201801121330.26# -->
<div class="subtitle">January 12, 2018 &mdash;
ben
</div>
<!-- text begin -->
<p>did you know that <code>~/.ssh/config</code> aliases work for git remotes??</p>
<p>~/.ssh/config</p>
<pre>
Host gh
HostName github.com
User git
IdentityFile ~/.ssh/gh_key
</pre>
<p>you can now use <code>gh:username/repo</code> as the remote in place of <code>git@github.com:username/repo</code>, which is much shorter and easier to type many times!</p>
<p><code>git clone gh:benharri/learngit</code></p>
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.</p>
<pre>
Host tilde
HostName tilde.team
User ben
</pre>
<p>then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
<p>the ssh_config file is super useful. check <code>man ssh_config</code> for a full list of options!</p>
<p>Tags: <a href='tag_git.html'>git</a>, <a href='tag_ssh.html'>ssh</a></p>
<!-- text end -->
<p id='twitter'><a href='http://twitter.com/intent/tweet?url=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html&text=&lt;Type your comment here but please leave the URL so that other people can follow the comments&gt;&via=nebsirrah'>Comments? Tweet</a>
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-28376'></span></a>&nbsp;</p>
</div>
<div id="footer">CC by-nc-nd <a href="https://tilde.team/~ben/">~ben</a> &mdash; <a href="mailto:ben&#64;tilde&#46;team">ben&#64;tilde&#46;team</a><br/>
Generated with <a href="https://github.com/cfenollosa/bashblog">bashblog</a>, a single bash script to easily create blogs like this one</div>
</div></div>
</div>
<br>
</body></html>