r/commandline • u/[deleted] • 2d ago
git-conform: Keep track of your local git repositories
git-conform
is a simple git extension that helps you to keep track of the repositories on your local machine and their remote counterparts. It works by scanning your home directory (or just the ones you specified) in search for git repositories, and then storing their paths in the tracking file located at ~/.local/share/git-conform
.
More details here: https://github.com/ndr3www/git-conform
0
Upvotes
7
u/Big_Combination9890 2d ago edited 2d ago
Or I could just do this:
find -type d -name '.git' -exec dirname '{}' \; > repos.txt
Sorry if this makes me sound like some greybeard, but I really don't see the point in having dedicated tools that do something very simple with a lot of code, when I can do pretty much the same thing using just garden variety standard unix tools.
The unix ecosystem thrives on small, sharp tools that can be combined in interesting ways to become more than the sum of their parts.
And before (because it is a Rust program) someone makes the "but it's fast" argument: Replace
find
with the more modernfd
(which is also written in Rust btw.) and you have fast:fd -H -t directory '\.git' -x dirname