Skip to content

Instantly share code, notes, and snippets.

View alvarmaciel's full-sized avatar

Alvar Maciel alvarmaciel

View GitHub Profile
@alvarmaciel
alvarmaciel / git-recent-branches
Last active November 27, 2023 20:05 — forked from mgaitan/git-recent-branches
List or checkout recently used branches in git
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This is a derivated work from https://gist.github.com/mgaitan/ba1e4e252b90a7fd4a4eb9e1742e94fb
List the most recent branches you have been working on, and checkout any of them.
# Install
Put this file somewhere in your PATH, and set execution permissions.
Git will recognize it as the "recent-branches" subcommand.