Get Git Branches Checked Out on a Date
I don't use any type of git UI -- I try to be hardcore and stick to the command line. This makes git usage quicker but I also probably miss out on a lot of the functionality that would be nice to know. The functionality is there, of course, but without a nice icon or menu item you don't really think about it.
I was browsing CommandLineFu and found a nice git snippet which provides you a listing of branches checked out on a given date:
git reflog --date=local | grep "Sep 10 .* checkout: moving from .* to" | grep -o "[a-zA-Z0-9\-]*$" | sort | uniq
I love this snippet because I often forget recently created branch names (...grow up and delete old branches, David!), especially when leaving work for the weekend. Handy!
![Regular Expressions for the Rest of Us]()
Sooner or later you'll run across a regular expression. With their cryptic syntax, confusing documentation and massive learning curve, most developers settle for copying and pasting them from StackOverflow and hoping they work. But what if you could decode regular expressions and harness their power? In...
![Conquering Impostor Syndrome]()
Two years ago I documented my struggles with Imposter Syndrome and the response was immense. I received messages of support and commiseration from new web developers, veteran engineers, and even persons of all experience levels in other professions. I've even caught myself reading the post...
![Create Spinning, Fading Icons with CSS3 and MooTools]()
A goal of my latest blog redesign was to practice what I preached a bit more; add a bit more subtle flair. One of the ways I accomplished that was by using CSS3 animations to change the display of my profile icons (RSS, GitHub, etc.) I...
![HTML5 Placeholder Styling with CSS]()
Last week I showed you how you could style selected text with CSS. I've searched for more interesting CSS style properties and found another: INPUT
placeholder styling. Let me show you how to style placeholder text within INPUT
elements with some unique CSS code.
The CSS
Firefox...
That was really helpful. I created a script “branches by date” to make it easier to use, I hope that someone will find it useful. https://gist.github.com/ahmedelgabri/2684c4578c3fe5990c5a