commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Full output in one single git command, no pipes nor other process invocations.
Will also work under cmd on Windows, with MSysGit, and can be aliased, simply add
branch-rel = "for-each-ref --sort=-committerdate --format='%1B[32m%(committerdate:iso8601) %1B[34m%(committerdate:relative) %1B[0;m%(refname:short)' refs/heads/"
to your .gitconfig file.
There are 2 alternatives - vote for the best!
Print out list of all branches with last commit date to the branch, including relative time since commit and color coding.
This fixes a bug found in the other scripts which fail when a branch has the same name as a file or directory in the current directory.
Simpler and without all of the coloring gimmicks. This just returns a list of branches with the most recent first. This should be useful for cleaning your remotes.
If you can do better, submit your command here.
You must be signed in to comment.