Last active
August 14, 2018 19:28
-
-
Save bdimcheff/3796353 to your computer and use it in GitHub Desktop.
git-recentbranch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
for k in `git branch -a|sed "s/..//"|sed "s/\s*->.*//"`;do echo -e `git log -1 --pretty=format:"%ct %Cblue%cr%Creset" "$k" --`\\t"$k";done|sort| cut -d' ' -f2- |
Author
bdimcheff
commented
Sep 27, 2012
- Stick this in a file called git-recentbranch and stick it in your path.
- Run "git recentbranch" from your favorite git repo.
- Now you don't need to ask which branch I just pushed. ;)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment