dp.cx blog

Thoughts from a programmer in (502) - A new post every 152 days!

Deleting local git branches with a missing remote branch
I have about 100 git repositories at $job, and of those, about 90% of them have branches that were created locally that were set as tracking branches, but never pushed to a remote. It makes looking at the output of git branch very annoying, so I wrote the script below to clean up those branches.

Posted on

My bash aliases
I've been using git a lot more recently, and in December, I switched to using a series of aliases just for git. Since then, I've used my aliases 1700+ times (on my work machine alone), saving me over 22000 keystrokes, or almost 5 total hours of typing, just since December.

Posted on

Git: GUI Mergetools
I've been using SourceTree for my git interaction recently. I love that it's free, and the fact that I can easily click on hashes to see what happened in a commit is awesome.

Posted on