List only the most recent SemVer version number per major.minor branch

Here's a handy snippet to show only v1.3, v2.1 out of a range like v1.0, v1.1, v1.2, v1.3, v2.0, v2.1: git tag -l "v*.*.*" --sort=-v:refname | awk -F. '!seen[$1,$2]++' (Input does not have to come from git, it can be any newline-delimited list of ve…
Read more →

High-quality commits

Getting in the habit of crafting high-quality commits makes the use and collaboration with revision control systems such as Git a lot easier and more effective. Good commits help us: Find out why a change was made. Understand the different trade-off…
Read more →

Dotfiles showcase: Git

This post is part of an ongoing series on dotfiles. In today's episode we look at dotfiles for Git. rerere The first item I'd like to call attention to is a little known option called "reuse recorded resolution", or rerere for short. It's a feature …
Read more →

Getting (g)it

Chances are, if you're reading this article and you're a programmer, you're working with Git, or at least some form of version control. But do you really get (g)it? This article will dive into what makes Git, or any other comparable distributed versi…
Read more →