Skip to content

Instantly share code, notes, and snippets.

View lemorage's full-sized avatar
:octocat:
Burst out of mind

Miao lemorage

:octocat:
Burst out of mind
View GitHub Profile
@lemorage
lemorage / git_step.py
Last active October 6, 2025 11:14
A Python script that adds a `git step` subcommand to interactively navigate a repository’s commit history.
#!/usr/bin/env python3
# ######################################################################################################
# ## Setup as Git Subcommand ##
# ######################################################################################################
# ## To enable 'git step' in ALL Git repos via config only: ##
# ## ##
# ## 1. Save this file as ~/git_step.py (or any path you like). ##
# ## ##
# ## 2. Run: git config --global alias.step '!python3 ~/git_step.py' ##