add git branch name post

This commit is contained in:
Ben Harris 2020-06-27 17:00:05 -04:00
parent 48de610c78
commit 52a4e8a597
9 changed files with 418 additions and 45 deletions

View File

@ -25,6 +25,10 @@
</div></div></div>
<div id="divbody"><div class="content">
<h3>all posts</h3>
<h4 class='allposts_header'>June 2020</h4>
<ul>
<li><a href="./default-branch-name.html">default branch name</a> &mdash; June 16, 2020</li>
</ul>
<h4 class='allposts_header'>March 2020</h4>
<ul>
<li><a href="./tools-and-services.html">tools and services</a> &mdash; March 03, 2020</li>

View File

@ -33,13 +33,13 @@
<li><a href="tag_blog.html">blog</a> &mdash; 3 posts</li>
<li><a href="tag_bookmarks.html">bookmarks</a> &mdash; 1 post</li>
<li><a href="tag_cold.html">cold</a> &mdash; 1 post</li>
<li><a href="tag_dev.html">dev</a> &mdash; 1 post</li>
<li><a href="tag_dev.html">dev</a> &mdash; 2 posts</li>
<li><a href="tag_dji.html">dji</a> &mdash; 1 post</li>
<li><a href="tag_dns.html">dns</a> &mdash; 2 posts</li>
<li><a href="tag_dotfiles.html">dotfiles</a> &mdash; 1 post</li>
<li><a href="tag_drone.html">drone</a> &mdash; 1 post</li>
<li><a href="tag_german.html">german</a> &mdash; 3 posts</li>
<li><a href="tag_git.html">git</a> &mdash; 2 posts</li>
<li><a href="tag_git.html">git</a> &mdash; 3 posts</li>
<li><a href="tag_gtx1080ti.html">gtx1080ti</a> &mdash; 1 post</li>
<li><a href="tag_heyderebub.html">heyderebub</a> &mdash; 1 post</li>
<li><a href="tag_hhgtg.html">hhgtg</a> &mdash; 1 post</li>
@ -50,7 +50,7 @@
<li><a href="tag_jokes.html">jokes</a> &mdash; 2 posts</li>
<li><a href="tag_linguistics.html">linguistics</a> &mdash; 1 post</li>
<li><a href="tag_links.html">links</a> &mdash; 1 post</li>
<li><a href="tag_linux.html">linux</a> &mdash; 9 posts</li>
<li><a href="tag_linux.html">linux</a> &mdash; 10 posts</li>
<li><a href="tag_lyrics.html">lyrics</a> &mdash; 1 post</li>
<li><a href="tag_mastodon.html">mastodon</a> &mdash; 1 post</li>
<li><a href="tag_music.html">music</a> &mdash; 1 post</li>

View File

@ -0,0 +1,97 @@
<!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">
<meta name="theme-color" content="#00cc00">
<link rel="icon" type="image/png" sizes="192x192" href="https://tilde.team/apple-touch-icon-precomposed.png">
<link rel="icon" type="image/png" sizes="96x96" href="https://tilde.team/favicon-96x96.png">
<link rel="stylesheet" href="https://tilde.team/~ben/gruvbox/gruvbox.css">
<link rel="stylesheet" href="extra.css">
<link rel="alternate" type="application/rss+xml" title="subscribe to this page..." href="feed.rss" />
<title>default branch name</title>
</head><body>
<main>
<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">
<!-- entry begin -->
<h3><a class="ablack" href="default-branch-name.html">
default branch name
</a></h3>
<!-- bashblog_timestamp: #202006161518.54# -->
<div class="subtitle">June 16, 2020 &mdash;
~ben
</div>
<!-- text begin -->
<p>changing git's default branch name has come up recently as an easy action
we can take to update our language and remove harmful ideas from our daily
usage.</p>
<p>i'm concerned that this effort to change the language used is ultimately a
symbolic gesture to avoid scrutiny into actual change (notably github's
push for this change and continued contracts with ICE).</p>
<p>however, it's an easy change to make.</p>
<p>let's have a look at how to change it for new repos:</p>
<pre><code>mkdir -p ~/.config/git/template
echo "ref: refs/head/main" ~/.config/git/template/HEAD
git config --global init.templateDir ~/.config/git/template
</code></pre>
<p>note that you can put this template dir anywhere you like.</p>
<p>you can also set this system-wide (not just for your user)
in /usr/share, but note that this might get overriden by
package updates.</p>
<pre><code>echo "ref: refs/head/main" | sudo tee /usr/share/git-core/templates/HEAD
</code></pre>
<p>the next time you <code>git init</code>, you'll be on a branch named main.</p>
<p>to change an existing repo, you can use the <code>-m</code> switch of <code>git-branch</code>:</p>
<pre><code>git checkout master
git branch -m master main
</code></pre>
<p>push with <code>-u</code> to your remote if needed and update the default branch in the
repo settings in the hosting platform of choice.</p>
<p>it's a relatively easy change, but don't kid yourself that it makes any real
impact. go protest, <a href="
https://blacklivesmatter.carrd.co/">donate and sign petitions</a>, and get out there to fix the actual problems.</p>
<p>tags: <a href='tag_git.html'>git</a>, <a href='tag_linux.html'>linux</a>, <a href='tag_dev.html'>dev</a></p>
<!-- text end -->
<!-- entry end -->
</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://tildegit.org/team/bashblog">bashblog</a>, a single bash script to easily create blogs like this one</div>
</div></div>
<script src="https://utteranc.es/client.js"
repo="benharri/tilde"
issue-term="title"
crossorigin="anonymous"
theme="github-dark"
async>
</script>
</main>
<br>
</body></html>

View File

@ -0,0 +1,43 @@
default branch name
changing git's default branch name has come up recently as an easy action
we can take to update our language and remove harmful ideas from our daily
usage.
i'm concerned that this effort to change the language used is ultimately a
symbolic gesture to avoid scrutiny into actual change (notably github's
push for this change and continued contracts with ICE).
however, it's an easy change to make.
---
let's have a look at how to change it for new repos:
mkdir -p ~/.config/git/template
echo "ref: refs/head/main" ~/.config/git/template/HEAD
git config --global init.templateDir ~/.config/git/template
note that you can put this template dir anywhere you like.
you can also set this system-wide (not just for your user)
in /usr/share, but note that this might get overriden by
package updates.
echo "ref: refs/head/main" | sudo tee /usr/share/git-core/templates/HEAD
the next time you `git init`, you'll be on a branch named main.
to change an existing repo, you can use the `-m` switch of `git-branch`:
git checkout master
git branch -m master main
push with `-u` to your remote if needed and update the default branch in the
repo settings in the hosting platform of choice.
it's a relatively easy change, but don't kid yourself that it makes any real
impact. go protest, [donate and sign petitions](
https://blacklivesmatter.carrd.co/), and get out there to fix the actual problems.
tags: git, linux, dev

View File

@ -2,10 +2,63 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel><title>blog // ~ben</title><link>https://tilde.team/~ben/blog/index.html</link>
<description>a blog about tildes and other things</description><language>en</language>
<lastBuildDate>Tue, 03 Mar 2020 16:40:29 -0500</lastBuildDate>
<pubDate>Tue, 03 Mar 2020 16:40:29 -0500</pubDate>
<lastBuildDate>Tue, 16 Jun 2020 15:26:33 -0400</lastBuildDate>
<pubDate>Tue, 16 Jun 2020 15:26:33 -0400</pubDate>
<atom:link href="https://tilde.team/~ben/blog/feed.rss" rel="self" type="application/rss+xml" />
<item><title>
default branch name
</title><description><![CDATA[
<p>changing git's default branch name has come up recently as an easy action
we can take to update our language and remove harmful ideas from our daily
usage.</p>
<p>i'm concerned that this effort to change the language used is ultimately a
symbolic gesture to avoid scrutiny into actual change (notably github's
push for this change and continued contracts with ICE).</p>
<p>however, it's an easy change to make.</p>
<p>let's have a look at how to change it for new repos:</p>
<pre><code>mkdir -p ~/.config/git/template
echo "ref: refs/head/main" ~/.config/git/template/HEAD
git config --global init.templateDir ~/.config/git/template
</code></pre>
<p>note that you can put this template dir anywhere you like.</p>
<p>you can also set this system-wide (not just for your user)
in /usr/share, but note that this might get overriden by
package updates.</p>
<pre><code>echo "ref: refs/head/main" | sudo tee /usr/share/git-core/templates/HEAD
</code></pre>
<p>the next time you <code>git init</code>, you'll be on a branch named main.</p>
<p>to change an existing repo, you can use the <code>-m</code> switch of <code>git-branch</code>:</p>
<pre><code>git checkout master
git branch -m master main
</code></pre>
<p>push with <code>-u</code> to your remote if needed and update the default branch in the
repo settings in the hosting platform of choice.</p>
<p>it's a relatively easy change, but don't kid yourself that it makes any real
impact. go protest, <a href="
https://blacklivesmatter.carrd.co/">donate and sign petitions</a>, and get out there to fix the actual problems.</p>
<p>tags: <a href='tag_git.html'>git</a>, <a href='tag_linux.html'>linux</a>, <a href='tag_dev.html'>dev</a></p>
<!-- text end -->
]]></description><link>https://tilde.team/~ben/blog/default-branch-name.html</link>
<guid>https://tilde.team/~ben/blog/./default-branch-name.html</guid>
<dc:creator>~ben</dc:creator>
<pubDate>Tue, 16 Jun 2020 15:18:54 -0400</pubDate></item>
<item><title>
tools and services
</title><description><![CDATA[

View File

@ -24,6 +24,60 @@
<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="default-branch-name.html">
default branch name
</a></h3>
<!-- bashblog_timestamp: #202006161518.54# -->
<div class="subtitle">June 16, 2020 &mdash;
~ben
</div>
<!-- text begin -->
<p>changing git's default branch name has come up recently as an easy action
we can take to update our language and remove harmful ideas from our daily
usage.</p>
<p>i'm concerned that this effort to change the language used is ultimately a
symbolic gesture to avoid scrutiny into actual change (notably github's
push for this change and continued contracts with ICE).</p>
<p>however, it's an easy change to make.</p>
<p>let's have a look at how to change it for new repos:</p>
<pre><code>mkdir -p ~/.config/git/template
echo "ref: refs/head/main" ~/.config/git/template/HEAD
git config --global init.templateDir ~/.config/git/template
</code></pre>
<p>note that you can put this template dir anywhere you like.</p>
<p>you can also set this system-wide (not just for your user)
in /usr/share, but note that this might get overriden by
package updates.</p>
<pre><code>echo "ref: refs/head/main" | sudo tee /usr/share/git-core/templates/HEAD
</code></pre>
<p>the next time you <code>git init</code>, you'll be on a branch named main.</p>
<p>to change an existing repo, you can use the <code>-m</code> switch of <code>git-branch</code>:</p>
<pre><code>git checkout master
git branch -m master main
</code></pre>
<p>push with <code>-u</code> to your remote if needed and update the default branch in the
repo settings in the hosting platform of choice.</p>
<p>it's a relatively easy change, but don't kid yourself that it makes any real
impact. go protest, <a href="
https://blacklivesmatter.carrd.co/">donate and sign petitions</a>, and get out there to fix the actual problems.</p>
<p>tags: <a href='tag_git.html'>git</a>, <a href='tag_linux.html'>linux</a>, <a href='tag_dev.html'>dev</a></p>
<!-- text end -->
<h3><a class="ablack" href="tools-and-services.html">
tools and services
</a></h3>
@ -171,46 +225,6 @@ utterances
<!-- text end -->
<h3><a class="ablack" href="no-more-google.html">
no more google
</a></h3>
<!-- bashblog_timestamp: #201808142336.05# -->
<div class="subtitle">August 14, 2018 &mdash;
~ben
</div>
<!-- text begin -->
<p>not sure if this is appropriately tagged, but i didn't feel like making a new
one.</p>
<p>i figured i should probably get some notes down about moving off google.</p>
<p>to start, i'll get a list of the things i was able to easily replace:</p>
<ul>
<li>gmail => <a href="https://tilde.team/wiki/?page=email">@tilde.team mail</a></li>
<li>google drive => <a href="https://syncthing.net">syncthing</a> (with a persistent node running on my personal vps)</li>
</ul>
<p>i'm still using:</p>
<ul>
<li>gplay music/youtube</li>
<li>google maps (open streetmap isn't good enough to replace it)</li>
<li>google photos - but this is going to be replaced long-term with syncthing</li>
</ul>
<p>tags: <a href='tag_linux.html'>linux</a>, <a href='tag_net-neutrality.html'>net-neutrality</a></p>
<!-- text end -->

View File

@ -24,6 +24,60 @@
<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="default-branch-name.html">
default branch name
</a></h3>
<!-- bashblog_timestamp: #202006161518.54# -->
<div class="subtitle">June 16, 2020 &mdash;
~ben
</div>
<!-- text begin -->
<p>changing git's default branch name has come up recently as an easy action
we can take to update our language and remove harmful ideas from our daily
usage.</p>
<p>i'm concerned that this effort to change the language used is ultimately a
symbolic gesture to avoid scrutiny into actual change (notably github's
push for this change and continued contracts with ICE).</p>
<p>however, it's an easy change to make.</p>
<p>let's have a look at how to change it for new repos:</p>
<pre><code>mkdir -p ~/.config/git/template
echo "ref: refs/head/main" ~/.config/git/template/HEAD
git config --global init.templateDir ~/.config/git/template
</code></pre>
<p>note that you can put this template dir anywhere you like.</p>
<p>you can also set this system-wide (not just for your user)
in /usr/share, but note that this might get overriden by
package updates.</p>
<pre><code>echo "ref: refs/head/main" | sudo tee /usr/share/git-core/templates/HEAD
</code></pre>
<p>the next time you <code>git init</code>, you'll be on a branch named main.</p>
<p>to change an existing repo, you can use the <code>-m</code> switch of <code>git-branch</code>:</p>
<pre><code>git checkout master
git branch -m master main
</code></pre>
<p>push with <code>-u</code> to your remote if needed and update the default branch in the
repo settings in the hosting platform of choice.</p>
<p>it's a relatively easy change, but don't kid yourself that it makes any real
impact. go protest, <a href="
https://blacklivesmatter.carrd.co/">donate and sign petitions</a>, and get out there to fix the actual problems.</p>
<p>tags: <a href='tag_git.html'>git</a>, <a href='tag_linux.html'>linux</a>, <a href='tag_dev.html'>dev</a></p>
<!-- text end -->
<h3><a class="ablack" href="phoenix.html">
phoenix
</a></h3>

View File

@ -24,6 +24,60 @@
<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="default-branch-name.html">
default branch name
</a></h3>
<!-- bashblog_timestamp: #202006161518.54# -->
<div class="subtitle">June 16, 2020 &mdash;
~ben
</div>
<!-- text begin -->
<p>changing git's default branch name has come up recently as an easy action
we can take to update our language and remove harmful ideas from our daily
usage.</p>
<p>i'm concerned that this effort to change the language used is ultimately a
symbolic gesture to avoid scrutiny into actual change (notably github's
push for this change and continued contracts with ICE).</p>
<p>however, it's an easy change to make.</p>
<p>let's have a look at how to change it for new repos:</p>
<pre><code>mkdir -p ~/.config/git/template
echo "ref: refs/head/main" ~/.config/git/template/HEAD
git config --global init.templateDir ~/.config/git/template
</code></pre>
<p>note that you can put this template dir anywhere you like.</p>
<p>you can also set this system-wide (not just for your user)
in /usr/share, but note that this might get overriden by
package updates.</p>
<pre><code>echo "ref: refs/head/main" | sudo tee /usr/share/git-core/templates/HEAD
</code></pre>
<p>the next time you <code>git init</code>, you'll be on a branch named main.</p>
<p>to change an existing repo, you can use the <code>-m</code> switch of <code>git-branch</code>:</p>
<pre><code>git checkout master
git branch -m master main
</code></pre>
<p>push with <code>-u</code> to your remote if needed and update the default branch in the
repo settings in the hosting platform of choice.</p>
<p>it's a relatively easy change, but don't kid yourself that it makes any real
impact. go protest, <a href="
https://blacklivesmatter.carrd.co/">donate and sign petitions</a>, and get out there to fix the actual problems.</p>
<p>tags: <a href='tag_git.html'>git</a>, <a href='tag_linux.html'>linux</a>, <a href='tag_dev.html'>dev</a></p>
<!-- text end -->
<h3><a class="ablack" href="dotfiles.html">
dotfiles
</a></h3>

View File

@ -24,6 +24,60 @@
<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="default-branch-name.html">
default branch name
</a></h3>
<!-- bashblog_timestamp: #202006161518.54# -->
<div class="subtitle">June 16, 2020 &mdash;
~ben
</div>
<!-- text begin -->
<p>changing git's default branch name has come up recently as an easy action
we can take to update our language and remove harmful ideas from our daily
usage.</p>
<p>i'm concerned that this effort to change the language used is ultimately a
symbolic gesture to avoid scrutiny into actual change (notably github's
push for this change and continued contracts with ICE).</p>
<p>however, it's an easy change to make.</p>
<p>let's have a look at how to change it for new repos:</p>
<pre><code>mkdir -p ~/.config/git/template
echo "ref: refs/head/main" ~/.config/git/template/HEAD
git config --global init.templateDir ~/.config/git/template
</code></pre>
<p>note that you can put this template dir anywhere you like.</p>
<p>you can also set this system-wide (not just for your user)
in /usr/share, but note that this might get overriden by
package updates.</p>
<pre><code>echo "ref: refs/head/main" | sudo tee /usr/share/git-core/templates/HEAD
</code></pre>
<p>the next time you <code>git init</code>, you'll be on a branch named main.</p>
<p>to change an existing repo, you can use the <code>-m</code> switch of <code>git-branch</code>:</p>
<pre><code>git checkout master
git branch -m master main
</code></pre>
<p>push with <code>-u</code> to your remote if needed and update the default branch in the
repo settings in the hosting platform of choice.</p>
<p>it's a relatively easy change, but don't kid yourself that it makes any real
impact. go protest, <a href="
https://blacklivesmatter.carrd.co/">donate and sign petitions</a>, and get out there to fix the actual problems.</p>
<p>tags: <a href='tag_git.html'>git</a>, <a href='tag_linux.html'>linux</a>, <a href='tag_dev.html'>dev</a></p>
<!-- text end -->
<h3><a class="ablack" href="networking-nonsense.html">
networking nonsense
</a></h3>