Blog
This is page 13 of 30.
Using Git restore to discard changes within a file
Article posted 11th May 2021 in Development and Git
git restoreis great, and one of its superpowers is its patch mode where we can restore parts of a file, rather than the whole file at once.Undelete a file with Git
Article posted 10th May 2021 in Development and Git
I’ve talked about how great
git restoreis, but I missed a really obvious use ofgit restore: restoring a deleted file!Be careful with strikethrough
Article posted 20th April 2021 in Accessibility, Development and HTML
Struck-through text isn’t read by screen readers. This is true of all text-level semantics, but it’s worth drawing attention to strikethough.
The difference between strikethrough and del
Article posted 14th April 2021 in Development and HTML
Just like
<em>and<i>, and<strong>and<b>, the distinction between<s>and<del>is subtle, but it’s worth knowing.Git restore to discard changes
Article posted 13th April 2021 in Development and Git
I no longer use
git checkoutto switch branches; I’ve also stopped using it to discard uncommitted changes: let me introducegit restore!Using Git switch to change branches
Article posted 12th April 2021 in Development and Git
Since upgrading to macOS Big Sur, I’ve noticed that
git switchworks. But why do we need it when we’ve gotgit checkout?Cleaner focus outlines with box-decoration-break
Article posted 8th April 2021 in CSS
When I changed my site’s form and button focus styles, links felt a bit left out. But discovering
box-decoration-breakhas made things consistent.Bold and italics aren’t read by screen readers
Article posted 2nd April 2021 in Accessibility
Emphasis and other text-level semantics are normally ignored by screen readers, so it you’re relying on them for meaning you could be in trouble.
Sentence case versus title case
Article posted 31st March 2021 in Accessibility and Design
I’m a fan of good typography, and something I come across a fair bit is whether sentence case or title case is better for headings.
Reset to a previous commit
Article posted 29th March 2021 in Development and Git
Have you ever made a bunch of commits on the wrong branch? I certainly have… Luckily, there’s an easy way to put things right.