Read more

Git shortcut to checkout recent branches

Michael Leimstädtner
September 23, 2021Software engineer at makandra GmbH

If you have fzf Show archive.org snapshot installed, you may add an alias such as this to your ~/.bashrc:

alias recent-branch="git for-each-ref --sort=-committerdate --format='%(refname:short)' refs/heads/ |  fzf | sed 's/\* //g' | xargs -I '{}' git checkout {}"
Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

Now whenever you want to switch back and forth between your most recent branches, type recent-branch, select one and press enter.

Posted by Michael Leimstädtner to makandra dev (2021-09-23 13:17)